小编use*_*559的帖子

WinApi消息循环,Postmessage就像SendMessage一样

你好有人回答我为什么当我运行这个程序时,MessageBoxes的顺序是1,2,4,3而不是1,2,3,4.在我看来,程序应该在启动WM_USER + 11之前结束执行WM_PAINT程序,为什么不呢?

// Win32Project6.cpp : Defines the entry point for the application.
//

#include "stdafx.h"
#include "Win32Project6.h"

#define MAX_LOADSTRING 100

// Global Variables:
HINSTANCE hInst;                                // current instance
TCHAR szTitle[MAX_LOADSTRING];                  // The title bar text
TCHAR szWindowClass[MAX_LOADSTRING];            // the main window class name

// Forward declarations of functions included in this code module:
ATOM                MyRegisterClass(HINSTANCE hInstance);
BOOL                InitInstance(HINSTANCE, int);
LRESULT CALLBACK    WndProc(HWND, UINT, WPARAM, LPARAM);
INT_PTR CALLBACK    About(HWND, UINT, WPARAM, LPARAM);


DWORD thread(LPVOID lpdwThreadParam);

int APIENTRY _tWinMain(_In_ HINSTANCE hInstance, …
Run Code Online (Sandbox Code Playgroud)

c++ winapi postmessage getmessage

3
推荐指数
1
解决办法
1188
查看次数

标签 统计

c++ ×1

getmessage ×1

postmessage ×1

winapi ×1