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 » region defined windows or Rounded rectangle windows
region defined windows or Rounded rectangle windows [message #12945] Fri, 30 November 2007 07:37 Go to next message
amit is currently offline  amit
Messages: 17
Registered: November 2007
Promising Member
hi,
I am trying to have a region defined window in winXP.
Using the win 32 method i did the following:
1) added the below code in the constructor of TopWindow class

 HRGN window_region = CreateRoundRectRgn(
                                           0,      // x-coordinate of upper-left corner
                                           0,      // y-coordinate of upper-left corner
                                           224,    // x-coordinate of lower-right corner
                                           489,   // y-coordinate of lower-right corner
                                           20,      // height of ellipse
                                           20       // width of ellipse
                                         );
  SetWindowRgn(GetHWND(), window_region, TRUE);



but the resultant was no change just same old rectangular window, is there any thing wrong here and also is there any native way in U++ for region defined windows??


regards,
Re: region defined windows or Rounded rectangle windows [message #12946 is a reply to message #12945] Fri, 30 November 2007 08:00 Go to previous message
amit is currently offline  amit
Messages: 17
Registered: November 2007
Promising Member
amit wrote on Fri, 30 November 2007 12:07

hi,
I am trying to have a region defined window in winXP.
Using the win 32 method i did the following:
1) added the below code in the constructor of TopWindow class

 HRGN window_region = CreateRoundRectRgn(
                                           0,      // x-coordinate of upper-left corner
                                           0,      // y-coordinate of upper-left corner
                                           224,    // x-coordinate of lower-right corner
                                           489,   // y-coordinate of lower-right corner
                                           20,      // height of ellipse
                                           20       // width of ellipse
                                         );
  SetWindowRgn(GetHWND(), window_region, TRUE);



but the resultant was no change just same old rectangular window, is there any thing wrong here and also is there any native way in U++ for region defined windows??


regards,



Very Happy ok found the problem, i had set the region before setting it to popup style ... this would have over written the previous setting and hence no effect of the region.

all problems solved here ...
Previous Topic: No title bar and no frame, just Image or Ctrl
Next Topic: Custom actions on Minimize or Close button
Goto Forum:
  


Current Time: Thu Apr 25 13:48:22 CEST 2019

Total time taken to generate the page: 0.01096 seconds