Jump to content

  • Log In with Google      Sign In   
  • Create Account


#ActualATC

Posted 19 October 2012 - 11:08 PM

Now that I got that WndProc problem solved I've got a pretty good Window class coming along... But now I'm having a REALLY stupid problem that makes no sense at all...

The SetWindowTextW and SetWindowTextA functions flat out don't work... they do NOTHING... And just to make sure it wasn't a bad HWND handle at fault I tried this:

SetWindowPos( hWnd, null, 700, 700, width, height, null );

...and it worked exactly as expected! So I know my handle is good. But why won't SetWindowText work? I've used this function a million times in the past, even called in from C# with P/Invoke and it always worked. Why is it not working now? Even if I just hard-code something like:

SetWindowTextW( hWnd, L"WTF!?" );

...even that doesn't work! Posted Image

Any ideas?

EDIT:

Even more odd is that my Window gets the WM_SETTEXT message if I call SetWindowText, but still, nothing happens... the text remains untouched...

#1ATC

Posted 19 October 2012 - 11:07 PM

Now that I got that WndProc problem solved I've got a pretty good Window class coming along... But now I'm having a REALLY stupid problem that makes no sense at all...

The SetWindowTextW and SetWindowTextA functions flat out don't work... they do NOTHING... And just to make sure it wasn't a bad HWND handle at fault I tried this:

SetWindowPos( hWnd, null, 700, 700, width, height, null );

...and it worked exactly as expected! So I know my handle is good. But why won't SetWindowText work? I've used this function a million times in the past, even called in from C# with P/Invoke and it always worked. Why is it not working now? Even if I just hard-code something like:

SetWindowTextW( hWnd, L"WTF!?" );

...even that doesn't work! Posted Image

Any ideas?

PARTNERS