commdlg.h 포함 시킴. 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 #include ... LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { static CHOOSECOLOR color; static COLORREF setColor; static COLORREF crCustColors[16]; switch (message) { case WM_COMMAND: { int wmId = LOWORD(wParam); // 메뉴 ..
폰트 다이얼로그 commdlg.h 포함시킴. 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 #include ... LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { static CHOOSEFONT font; static LOGFONT setfont; HFONT hFont, oldFont; TCHAR str[] = L"폰트 Test 1234"; static bool fontflag = 0; switch (message)..
OPENFILENAME 구조체를 사용하기 위해 commdlg.h 포함 시키고 관련 세부 설정 후 GetOpenFileName(&ofn) 호출하면 된다. 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 #include ...LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){OPENFILENAME ofn;TCHAR strFile[MAX_PATH] = L"";TCHAR strTemp[MAX_PATH]; switch (message) { case WM_CO..