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 |
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,
|
|
|
Goto Forum:
Current Time: Thu Apr 25 03:15:04 CEST 2024
Total time taken to generate the page: 0.07806 seconds
|