Also, you can use this function:
Bit of a time saver really:Code:BOOL SetDlgItemText( HWND hDlg, // handle to dialog box int nIDDlgItem, // control identifier LPCTSTR lpString // text to set );
Code:SetDlgItemText(hWnd_MyWindow, IDC_BUTTON, "New caption");




Reply With Quote