Home » U++ Library support » U++ Library : Other (not classified elsewhere) » SizeGrip Problem or Bug
SizeGrip Problem or Bug [message #15001] |
Tue, 25 March 2008 03:43  |
huanghuan
Messages: 10 Registered: December 2007
|
Promising Member |
|
|
void SizeGrip::LeftDown(Point p, dword flags)
{
TopWindow *q = dynamic_cast<TopWindow *>(GetTopCtrl());
if(!q || q->IsMaximized() || !q->IsSizeable()) return;
#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
1. Why send these two message to the top window, and why 0xf008 ?
2. Maybe there is a bug in the second param make from "p". In a case, when SizeGrip leftdown, the ctrl in this window at the topleft will be also receive a leftdown call. These two p values are relative.
|
|
|
Goto Forum:
Current Time: Mon Apr 28 00:48:37 CEST 2025
Total time taken to generate the page: 0.00898 seconds
|