버튼 클릭하면 이미지 나오게 하기
1234567891011121314151617LRESULT OnCommand(HWND hWnd, WPARAM wParam, LPARAM lParam){ switch (LOWORD(wParam)){ case 100: hdc = GetDC(hWnd); MemDC = CreateCompatibleDC(hdc); OldBitmap = (HBITMAP)SelectObject(MemDC, hBitmap[0]); BitBlt(hdc, 30, 30, 500, 500, MemDC, 0, 0, SRCCOPY); SelectObject(MemDC, OldBitmap); DeleteDC(MemDC); ReleaseDC(hWnd, hdc); break; case 101: break; } return 0;}Colored by C..
2015. 7. 26.
WinAPI 콤보박스 생성 / ComboBox
1 2 3 4 5 6 7 8 9 10 TCHAR *str[] = { L"AOA", L"Girl's Day", L"Apink" }; int i; hSelect = CreateWindow(L"combobox", NULL, WS_CHILD | WS_VISIBLE | CBS_DROPDOWNLIST, 310, 90, 155, 80, hWnd, (HMENU)CB_SELECT, g_hInst, NULL); for (i = 0; i
2015. 6. 1.
GetExitCodeProcess
Colored By Color Scripter™1234#includeint main(){ return 100;}a.cpp Colored By Color Scripter™1234567891011121314151617181920212223#include#includeint main(){ STARTUPINFO si = { 0, }; PROCESS_INFORMATION pi; DWORD ret = 0, test; TCHAR path[] = L"a.exe"; si.cb = sizeof(si); puts("#"); CreateProcess(NULL, path, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi); CloseHandle(pi.hThread); //WaitForSingleOb..
2014. 5. 25.