Home » U++ Library support » U++ Library : Other (not classified elsewhere) » SizeGrip Problem or Bug
Re: SizeGrip Problem or Bug [message #15082 is a reply to message #15079] |
Fri, 28 March 2008 21:37  |
 |
mirek
Messages: 14255 Registered: November 2005
|
Ultimate Member |
|
|
Ops, I should have checked before... but what you are quoting is from 2007.1 U++, right?
Current code is:
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();
p = GetMousePos() - q->GetRect().TopLeft();
if(hwnd) {
::SendMessage(hwnd, WM_SYSCOMMAND, 0xf008, MAKELONG(p.x, p.y));
::SendMessage(hwnd, WM_LBUTTONUP, 0, MAKELONG(p.x, p.y));
}
So it looks like I has been fixed already...
Mirek
|
|
|
Goto Forum:
Current Time: Mon Apr 28 08:51:43 CEST 2025
Total time taken to generate the page: 0.04084 seconds
|