I am trying to allow the user to move/resize a CEF borderless window (created with the WS_POPUP flag).
The mouse position is caught in the CEF browser (using Javascript) and a C++ callback is called. Then, I send a message from the C++ callback to the CEF browser process via IPC (the message can contain HTRIGHT for example). The last step is moving or resizing the browser. I would like to generate WM_NCHITTEST messages in order to allow window moving/resizing.
I tried to do it that way:
PostMessage(getBrowserHwnd(), WM_NCHITTEST, 0, MAKELPARAM(cursorPos.x, cursorPos.y));
But of course, it does not work.
So my question is: Is there a way to generate WM_NCHITTEST messages? CEF does not let me access the client area of my window, therefore my window procedure doesn't receive any mouse events.
Any help would be greatly appreciated.
winapiwrapper