473,663 Members | 2,838 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\nYour self",

WS_CHILD | WS_VISIBLE | BS_CENTER | BS_MULTILINE,

0, 0, 1, 1,

hwndArg, (HMENU) IDC_W_ID_YOURSE LF, hInstance, NULL);

....snip...

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

HRGN hRegion = CreateRoundRect Rgn (0,0,200,200,20 0,200);

SetWindowRgn(hw ndIDYourself, hRegion, TRUE);

UpdateWindow(hw ndIDYourself);
Jan 26 '07 #1
0 838

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

Similar topics

0
1388
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 block level element (ie. a <p> or <div>) contains links (<a href="">), IE on the mac will flow the text in a very irregular way, breaking the text flow where there is no apparent reason for breaking it, sometimes halfway the line, although there is...
3
1491
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 irregular characters in the password ( !^&%@#... ) can not login. I tried to encode password ($_SERVER) with urlencode() and base64_encode() but it does not solve the proplem...
16
3446
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 the left to expand part way to the right, but not all the way to the right, as I want a smaller image on the right. Then this will continue to the bottom of the page. The text needs to flow down in the left column. And the right edge of the...
2
3955
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 control defining rectangle). For example, if I make a custom control that simply paints a circle inside its bounding box, how can I have the control not have the area of the control outside of the "bounding circle" affect any objects underneath...
4
2037
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
11536
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 and Hexagonal are made and are responding in click event but I am not able to provide colors to them. I used Window API programming also but buttons are not getting colored. Kindly help. I am calling Window API "gdi 32" in Modules and Putting Shapes,...
0
1675
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. This works fine for irregular shaped forms becuase they have a transparency key field, but user controls dont have this field. note i do not want to see the desktop. I want to see any other controls or form behind the irregularly shaped user...
3
988
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 -------->"sqldatareader"<-------- to retrieve values from the database. The values retrieved from the db is passed as an arraylist. Everything works fine untill I bind the arraylist with the datagrid. All values are coming(displayed) in grid ...
2
1010
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 dgResidentList.DataSource = objDataHandler.getResidents() dgResidentList.ReadOnly = True
6
3022
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 solution which is not that elegant involves if statements (or switch statements) in the body of the loop: e.g.
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8771
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6186
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4182
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.