버튼 클릭하면 이미지 나오게 하기
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.
연산자 오버라이딩, sort, 생성자
12345678910111213141516171819202122232425#include#includestruct block{ int n, a, h, w; block(){} block(int n, int a, int h, int w) :n(n), a(a), h(h), w(w) {} bool operator
2015. 6. 7.
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.