JBH Guest
|
Posted: Fri Mar 04, 2005 5:11 pm Post subject: System menu on a form with no border. |
|
|
I am trying to create a form with no border that can still be controlled by
the user. I allow the user to move the form with this code, placed in a
MouseDown event of an Image:
ReleaseCapture();
SendMessage(Form1->Handle, WM_NCLBUTTONDOWN, HTCAPTION, 0);
However, when I try to impliment a similar function that will generate the
system menu, it does not work:
ReleaseCapture();
SendMessage(Form1->Handle, WM_NCLBUTTONDOWN, HTSYSMENU, 0);
Thanks.
-Jon
|
|