콤보박스 (combo box)
#include #include "resource.h" BOOL CALLBACK MainDlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam); HINSTANCE g_hInst; HWND hDlgMain; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { g_hInst=hInstance; DialogBox(g_hInst, MAKEINTRESOURCE(IDD_DIALOG1), HWND_DESKTOP, MainDlgProc); return 0; } char arItem[3][20]={"라면","떢볶이","튀김"}; BOOL C..
더보기
리스트 박스 아이템 찾기 (SendDlgItemMessage, LB_FINDSTRING, LB_FINDSTRINGEXACT)
#include #include "resource.h" BOOL CALLBACK MainDlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam); HINSTANCE g_hInst; HWND hDlgMain; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { g_hInst=hInstance; DialogBox(g_hInst, MAKEINTRESOURCE(IDD_DIALOG1), HWND_DESKTOP, MainDlgProc); return 0; } char Items[][15]={"abacus","abadon","able","..
더보기
리스트박스에서 이벤트 처리 (WM_VKEYTOITEM)
#include #include "resource.h" BOOL CALLBACK MainDlgProc(HWND hDlg,UINT iMessage,WPARAM wParam,LPARAM lParam); HINSTANCE g_hInst; HWND hDlgMain; int APIENTRY WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance ,LPSTR lpszCmdParam,int nCmdShow) { g_hInst=hInstance; DialogBox(g_hInst, MAKEINTRESOURCE(IDD_DIALOG1), HWND_DESKTOP, MainDlgProc); return 0; } char Items[][15]={"Apple","Orange","Melon","..
더보기