김상형 저 Win32 API정복을 참고해서 공부하고있다.
Base가 되는 기본 틀 소스를 작성하였다.
https://github.com/ManSung-Kim/Win32Study/blob/master/StudyWin32/ApiTemplate.cpp
아직 초반이긴한데, Win32도 Android App처럼 생명주기가 있는것을 알고 신기했다. 오오..
WinMain은 최초 설정후 모든 루프는 메시지형태로 WndProc에서 처리된다. 오오..
LRESULT CALLBACK WndProc(HWND hWnd, UINT iMessage, WPARAM wParam, LPARAM lParam) { HDC hdc; // dc handle PAINTSTRUCT ps; // dc paint //static char str[256]; //static LPCTSTR str; //static TCHAR str[256]; //int len; switch(iMessage) { case WM_CREATE: return 0; case WM_PAINT: hdc=BeginPaint(hWnd,&ps); EndPaint(hWnd,&ps); return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return (DefWindowProc(hWnd,iMessage,wParam,lParam)); }
'소프트웨어 > Win32' 카테고리의 다른 글
Win32] Edit (0) | 2016.01.17 |
---|---|
Win32] CheckBox (0) | 2016.01.17 |
Win32] Button (0) | 2016.01.17 |
Win32] Bitmap Bitblt, StretchBlt (0) | 2016.01.17 |
Win32 공부를 시작하면서.. (0) | 2016.01.06 |
Win32] Menu 만들기 (0) | 2016.01.06 |
VS2010] Resource .rc 다른편집기에서 열려있습니다. (0) | 2016.01.06 |