Windows Message – Control 제어
[ Edit ]
|
글자수 제한하기 |
SendMessage( hWnd, EM_SETLIMITTEXT, iLimit, 0 ); |
[ Button ]
|
이미지 입히기 |
SendMessage( hWnd, BM_SETIMAGE, IMAGE_BITMAP, (LPARAM)hBitmap); |
[ CheckBox ]
|
체크/언체크 |
SendMessage( hWnd, BM_SETCHECK, (WPARAM)BST_UNCHECKED, 0 ); |
|
상태얻기 |
if ( SendMessage(hWnd, BM_GETCHECK,0,0) == BST_CHECKED ) |
[ Radio ]
|
체크/언체크 |
BOOL CheckRadioButton( HWND hDlg, int nIDFirstButton, int nIDLastButton, int nIDCheckButton); |
|
상태얻기 |
if ( SendMessage(hWnd, BM_GETCHECK,0,0) == BST_CHECKED ) |
[ ComboBox ]
|
스트링추가 |
SendMessage(hCombo, CB_ADDSTRING, 0, [String]); |
|
Get Current idx |
int iComboIdx = SendMessage( hCombo, CB_GETCURSEL, 0, 0); |
|
Set Select idx |
SendMessage( hCombo, CB_SETCURSEL, [Index], 0); |
[ ListView ]
|
특정 raw로 자동스크롤 |
ListView_EnsureVisible( hList, idx, FALSE); |
[ TreeView ]
|
Get Root Item |
HTREEITEM TreeView_GetRoot( HWND ); |
|
Get Nex Item |
TreeView_GetNextItem( HWND, HTREEITEM, TVGN_NEXT ); |
|
Set Check |
TreeView_SetCheckState( HWND , HTREEITEM, BOOL); |
[ Spin Control ]
|
Range 설정 |
SendMessage( hWnd, UDM_SETRANGE, [Min], [Max] ); |
|
Buddy 설정 |
SendMessage( hWnd, UDM_SETBUDDY, [Buddy Edit Hwnd], 0 ); |
[ Tab Control ]
|
Tab 추가 |
TCITEM tie; |
'Windows Programming' 카테고리의 다른 글
| API Hooking - 2. PE File Format (0) | 2009.07.31 |
|---|---|
| API Hooking - 1. Dll Injection (0) | 2009.07.22 |
| Windows Mobile 전원 상태 감시 (0) | 2008.08.12 |
| 듀얼 모니터에서의 좌표값 확인 (1) | 2008.07.04 |
| COM DLL만으로 tlb파일 생성및 COM사용하기 (0) | 2008.04.28 |