Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
huanghuan is currently offline  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.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Visual Studio project files SVN rev. 197 (03/26/08)
Next Topic: New member needs help
Goto Forum:
  


Current Time: Sun Apr 28 05:46:12 CEST 2024

Total time taken to generate the page: 2.98922 seconds