Home » U++ Library support » U++ Widgets - General questions or Mixed problems » FIX - SizeGrip executes first MenuEntry of MenuBar
FIX - SizeGrip executes first MenuEntry of MenuBar [message #13750] |
Fri, 25 January 2008 21:42 |
loki
Messages: 36 Registered: October 2007
|
Member |
|
|
Hello,
I got some problem with the SizeGrip in the StatusBar.
After releasing the MouseButton on it, the first entry in the MenuBar is executet. Both, StatusBar and MenuBar belong to the same Ctrl.
I think it has something to do with this code:
void SizeGrip::LeftDown(Point p, dword flags)
{
TopWindow *q = dynamic_cast<TopWindow *>(GetTopCtrl());
if(!q || q->IsMaximized() || !q->IsSizeable()) return;
p = q->GetMouseViewPos();
#ifdef PLATFORM_WIN32
HWND hwnd = q->GetHWND();
if(hwnd) {
::SendMessage(hwnd, WM_SYSCOMMAND, 0xf008, MAKELONG(p.x, p.y));
::SendMessage(hwnd, WM_LBUTTONUP, 0, MAKELONG(p.x, p.y));
}
#endif
Edit
This should fix it under Windows. Can't test it under Linux.
p = q->GetMouseViewPos();
I use 2008.1 beta
greetings
loki
-
Attachment: Testcase.zip
(Size: 740.02KB, Downloaded 428 times)
[Updated on: Fri, 25 January 2008 22:40] Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Wed Apr 24 13:03:16 CEST 2024
Total time taken to generate the page: 0.02569 seconds
|