You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, download files, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!
If you have any problems with the registration process or your account login, please contact contact us.
Alex Feinman ask developers "why just go with boring rectangles for your Compact Framework windows"? Then shows how to work around the standard window box using an API function SetWindowRgn. "Introduction
Probably everyone has seen the desktop applications that have a main window shaped irregularly. A good example is Windows Media Player in skinned mode. Another is Intervideo WinDVD player. Not only these apps have custom-shaped main window, but their buttons are also rounded. Wouldn't it be great to do something like this in your next Pocket PC application?
...To approach this we need first to understand how the window shaping is done on the desktop platform. The main force behind all irregularly-shaped windows is the API function SetWindowRgn. By default Window Manager restricts the window painitng routines (both client and non-client) to a rectangular area defined by the return value of the function GetWindowRect.
This is how the regular window display area is related to its client and non-client areas. Non-client area surrounds client area and the display area is their union. "