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 Go to next message](theme/default/images/down.png) |
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 Go to previous message](theme/default/images/up.png) |
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,
|
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 ...
|
|
|
Goto Forum:
Current Time: Sun Sep 01 07:26:05 CEST 2024
Total time taken to generate the page: 0.04194 seconds
|