winapi

    Winmain 코드 (귀차니즘 해소용)

    다들 짤 줄 알지만 막상 짜려면 귀찮은 그 코드이다. 필요할때마다 복붙해서 쓰려고 그냥 올려놓았다. #include #define CLASSNAME TEXT("TestModule") LRESULT CALLBACK WndProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch (Message) { case WM_DESTROY: PostQuitMessage(0); break; } return DefWindowProc(hWnd, Message, wParam, lParam); } int __stdcall WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, int nShowCmd) { WNDCL..