Hi. how would i change the text of an object (label) WITHOUT creating a member variable for it? thanks
Try this: Code: LRESULT lRes; char* myStr = "My String"; lRes = SendDlgItemMessage(hWnd_Main, IDC_STATIC, WM_SETTEXT, 0, (LPARAM)myStr);
LRESULT lRes; char* myStr = "My String"; lRes = SendDlgItemMessage(hWnd_Main, IDC_STATIC, WM_SETTEXT, 0, (LPARAM)myStr);
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You". -- Linus Torvalds
Forum Rules