Programming
No. | 194 | ||||||||
Name. | swindler | ||||||||
Subject. | Button Caption 변경 | ||||||||
Main Cate. | Win32 | ||||||||
Sub Cate. | |||||||||
Date. | 2005-09-07 11:15 | ||||||||
Hit. | 9271 (211.109.70.164) | ||||||||
File. | |||||||||
Button Caption을 변경하는 법 CWnd* pB=GetDlgItem(ID_GEN_BUTTON); pB->SetWindowText("Re-Text"); cf) CScrollBar* pSB=(CScrollBar*) GetDlgItem(IDC_LOYAL); pSB->SetScrollRange(nMin, nMax); ID를 CWnd포인터로 변환해주는 CWnd::GetDlgItem(); -> 임시적인 포인터로 저장하지 않음. CWnd pointer를 ControlID로 변환하려면 CWnd::GetDlgCtrlID(); 사용 SetWindowText(hwnd,lpszString); Text얻기 iLength=GetWindowText(hwnd,pszBuffer,iMaxLength); iLength=GetWindowTextLength(hwnd); CWnd* GetDlgItem(int nID) const; void CWnd::GetDlgItem(int nID, HWND * phWnd) const; [바로가기 링크] : http://coolx.net/cboard/develop/194 |
|||||||||
|
|||||||||
[Modify] [Delete] | [Reply] [List] |