Doesnt SendMessageA work anymore with MaxGUI?
BlitzMax Forums/MaxGUI Module/Doesnt SendMessageA work anymore with MaxGUI?
| ||
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) |
| ||
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). |
| ||
You may even be able to call SendMessage() ? (Well, from C++ you can - it chooses the correct version for you) |
| ||
I think SebHoll meant you have to use: SendMessageW(hWnd, WM_NCLBUTTONDOWN, HTCAPTION, Null) |
| ||
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... |