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 » TopWindow&PopUp, TrayIcon » No title bar and no frame, just Image or Ctrl
Re: No title bar and no frame, just Image or Ctrl [message #12920 is a reply to message #2647] Wed, 28 November 2007 18:12 Go to previous message
amit is currently offline  amit
Messages: 17
Registered: November 2007
Promising Member
I tried to something:

-- the basic idea is to work in CtrlCore::Win32::Win32Proc.cpp
-- in message case : WM_NCHITTEST .
-- add this:

UINT test;
test = DefWindowProc(hwnd, WM_NCHITTEST, wParam, lParam);
if(test == HTCLIENT)
{
return HTCAPTION;
}
else
{
return test;
}

-- the problem starts here, any component added to this window does not receive any of the mouse event.
-- so if someone could guide me to workout a solution where i can know that mouse have been clicked in empty area and not in any child controls, then this could really work.


[Updated on: Wed, 28 November 2007 18:14]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon14.gif
Read Message
Previous Topic: How to force form to be resizable only in 1 direction
Next Topic: region defined windows or Rounded rectangle windows
Goto Forum:
  


Current Time: Tue Jun 25 19:29:49 CEST 2024

Total time taken to generate the page: 0.01495 seconds