15,979
社区成员
发帖
与我相关
我的任务
分享
int WINAPI _tWinMain( __in HINSTANCE hInstance, __in_opt HINSTANCE hPrevInstance, __in_opt LPSTR lpCmdLine, __in int nShowCmd)
{
InitCommonControls();
return ::DialogBox(hInstance, MAKEINTRESOURCE(IDD_DIALOG), NULL, (DLGPROC)MyDialogProc);
}
#include "Gdiplus.h"
#ifndef ULONG_PTR
#define ULONG_PTR (unsigned long*)
#endif
#define MAKEINTRESOURCEA(i) ((LPSTR)((ULONG_PTR)((WORD)(i))))
#define MAKEINTRESOURCEW(i) ((LPWSTR)((ULONG_PTR)((WORD)(i))))