473,508 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Making irregular windows

I do the following and get a sharp pointed square window.

I wanted rounded corners.

Can you tell me what is wrong?

thanks

hwndIDYourself = CreateWindow ("button", "Identify\nYourself",

WS_CHILD | WS_VISIBLE | BS_CENTER | BS_MULTILINE,

0, 0, 1, 1,

hwndArg, (HMENU) IDC_W_ID_YOURSELF, hInstance, NULL);

....snip...

MoveWindow (hwndIDYourself,200,200,200,200,TRUE);

HRGN hRegion = CreateRoundRectRgn (0,0,200,200,200,200);

SetWindowRgn(hwndIDYourself, hRegion, TRUE);

UpdateWindow(hwndIDYourself);
Jan 26 '07 #1
0 825

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1382
by: jeggertsen | last post by:
I noticed a reformatting text problem with IE5 on a mac. This is the only place I've seen this happen. Safari on mac is fine, as is every browser I tested (IE6,Firefox,NN) on windows. When a...
3
1482
by: slava.shklyar | last post by:
Hello, I'm writing some application that authenticates users via LDAP. When user going to login he sends user/pass by GET request to the application adn gets his ID back. Some users that have...
16
3434
by: Woodmon | last post by:
I want to flow text in an "irregular" column on the left and place a large image at the top of an "irregular" column to the right. Then after the bottom of the large image I want the text column on...
2
3939
by: ppyrstr | last post by:
I have been trying to figure out how to have a custom control that is irregular (non-rectangular) not interfere with other elements on the screen that may interfere with it's "regular" shape (the...
4
2022
by: keithb | last post by:
It looks like the span tag cannot be used with asp tables. What is the best way to make an irregular asp table? Thanks, Keith
5
11524
by: sunil borwankar | last post by:
I am trying hard to make Custom Command Buttons of Irregular Shape and of Different colours in Active X Interface Wizard but am not successful. Irregular Shape Buttons i.e.; Triangular, Arrow Shape...
0
1661
by: dr | last post by:
C# Irregular shaped user controls. How to make usercontrol have transparency key for its background image? I want to have irregular shaped user controls on my form. like a funny shaped button....
3
982
by: Paulson | last post by:
Hi everyone, I'm pretty new to this forum.Please help me tigers.Let me get to my problem I am developing and Desktop(Windows) Application using VB.Net. I am using ...
2
1004
by: Paulson | last post by:
Hi In my Desktop Application I call a function from UI The code is as follows __________________________________________________ ________________ Dim objDataHandler As New DataHandler Try...
6
3008
by: Nobody | last post by:
hi there, suppose I want to iterate for a specific variable e.g. i , but for non regular (or consecutive) values. For example i=0,1,2,4,5,7,8 etc how can I do that with a for loop? MY...
0
7323
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7379
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5049
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3180
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.