기다림과 눈물 by 바보
홈
태그
방명록
관리자
새글쓰기
Notice
Notice
Category
Category
분류 전체보기
(151)
바보씨 이야기
(20)
secrete
(0)
책 읽기
(48)
프로그래밍
(47)
Android
(10)
mac & iPhone
(0)
TrueType Font
(4)
tips
(0)
WDK
(0)
Apple
(5)
스타크래프트
(6)
음악/미술/문학
(9)
주식 이야기
(0)
Recent Posts
Recent Posts
SW 는 무엇으로 평...
WM_COMMAND 를 씹어...
TextView.setTextSi...
(3)
안드로이드 referen...
Recent Comments
Recent Comments
예압 ! 패키지의...
바보세룐
2011
;;; 이거 .. <view...
흰둥이안뇽
2011
재미 있겠어요. 저...
바보세룐
2011
요즘 교수님과 같이...
|꼬마늑대|
2011
Recent Trackbacks
Recent Trackbacks
노무현의 오랜 고민...
도서출판 부키
01/13
아름다움의 과학.
The note of Legendre
2010
pthread 문서모음.
yundream의 프로그..
2009
사법고시 합격자들...
일다의 블로그 소통
2009
«
2012/02
»
일
월
화
수
목
금
토
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Links
Links
L goon STORY.
무비스트.
Swim, Plastic Mode...
꼬마늑대의 골방.
긍정적사고.
VRLab 팀 블로그.
Total : 93,374
Today : 55
Win32 API Boilerplate Code
프로그래밍
2010/06/29 12:29 |
Win32 API Boilerplate Code 혹시 언젠가 쓸 지 몰라서 저장해 둠
#include <windows.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam); int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR szCmdLine, int nCmdShow) { //const static TCHAR appName[] = TEXT("Hello world"); HWND hwnd; MSG msg; WNDCLASS WndClass; //WndClass.cbSize = sizeof(WndClass); WndClass.style = CS_HREDRAW | CS_VREDRAW; WndClass.lpfnWndProc = WndProc; WndClass.cbClsExtra = 0; WndClass.cbWndExtra = 0; WndClass.hInstance = hInstance; WndClass.hIcon = LoadIcon(NULL, IDI_APPLICATION); WndClass.hCursor = LoadCursor(NULL, IDC_ARROW); WndClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); WndClass.lpszMenuName = NULL; WndClass.lpszClassName = "Window Class Name"; //Register if (!RegisterClass(&WndClass)) return 0; hwnd = CreateWindow( "Window Class Name", "Window Title Name", WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL); ShowWindow(hwnd,nCmdShow); UpdateWindow(hwnd); while(GetMessage(&msg,0,0,0)) { TranslateMessage(&msg); DispatchMessage(&msg); } return msg.wParam; } LRESULT CALLBACK WndProc(HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM lParam) { switch(iMsg) { case WM_CREATE : break; case WM_DESTROY : PostQuitMessage(0); break; } return DefWindowProc(hwnd, iMsg, wParam, lParam); }
Trackback
0
:
Comment
0
Trackback Address ::
http://seirion.com/trackback/186
댓글을 달아 주세요
: 이름
: 패스워드
: 홈페이지
비밀글
PREV
1
...
17
18
19
20
21
22
23
24
25
...
151
NEXT
댓글을 달아 주세요