분류 전체보기
-
WIN32API 기본코드IT창고/API 2007. 1. 22. 22:42
#pragma comment(linker,"/subsystem:windows") #include LRESULT CALLBACK WndProc( HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { switch( msg ) { case WM_CREATE: return 0; case WM_LBUTTONDOWN: return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return DefWindowProc( hwnd, msg, wParam, lParam); } int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrev, LPSTR lpCmdLine, int nShowCmd) { ..
-
bitmap 리전 만들기..IT창고/API 2007. 1. 22. 22:42
#define _WIN32_WINNT 0x0501 #define WINVER 0x0501 #include #include "resource.h" // rdh.iType = RDH_RECTANGLES; pData->rdh.nCount = pData->rdh.nRgnSize = 0; ::SetRect(&pData->rdh.rcBound, MAXLONG, MAXLONG, 0, 0); // Keep on hand highest and lowest values for the "transparent" pixels BYTE lr = GetRValue(cTransparentColor); BYTE lg = GetGValue(cTransparentColor); BYTE lb = GetBValue(cTransparentCo..
-
-