Doesnt SendMessageA work anymore with MaxGUI?

BlitzMax Forums/MaxGUI Module/Doesnt SendMessageA work anymore with MaxGUI?

maverick69(Posted 2009) [#1]
Does somebody know why the following code doesn't work anymore using the new Win32MaxGuiEx-Driver?

Usally it should make it possible to start dragging a window around.

ReleaseCapture()
SendMessageA(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, Null) 



SebHoll(Posted 2009) [#2]
MaxGUI.Win32MaxGUIEx is written using the Windows unicode API calls, so you'll need to use...

SendMessageW(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, Null)
...instead. The 'W' at the end stands for wide-char (two bytes per character), whereas 'A' means ANSI-char (one byte per character).


Brucey(Posted 2009) [#3]
You may even be able to call SendMessage() ? (Well, from C++ you can - it chooses the correct version for you)


TaskMaster(Posted 2009) [#4]
I think SebHoll meant you have to use:

SendMessageW(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, Null)


SebHoll(Posted 2009) [#5]
I think SebHoll meant you have to use:

SendMessageW(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, Null)

Whooopsies! Serves me right for copy and pasting and forgetting to update... :P

Thanks TaskMaster - I've updated my original post...