Notice
Recent Posts
Recent Comments
목록Gdiobject 1
LuvSea
Gdiobject
LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM WParam,LPARAM lParam) { HDC hdc; PAINTSTRUCT ps; HBRUSH Mybrush,Oldbrush; switch(iMessage){ case WM_PAINT: hdc = BeginPaint(hWnd,&ps); Mybrush = (HBRUSH)GetStockObject(LTGRAY_BRUSH); Oldbrush = (HBRUSH)SelectObject(hdc,Mybrush); Rectangle(hdc,50,50,300,200); SelectObject(hdc,Oldbrush); EndPaint(hWnd,&ps); return 0; case WM_DESTROY: PostQuit..
sTudy
2009. 7. 6. 12:37