473,397 Members | 1,974 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Drawing in XP Style

I'm trying to covert a userdrawn control written in C# to use the XP style. It consists only of a border, a button and a textbox.
The button and textbox is working fine but the border is not. The problem I have is that I cannot find the value of the constant
GP_BORDER as listed in this page of the help:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/shellcc/platform/commctls/userex/topics/partsandstates.htm

If anyone can help I would greatly appreciate it, I've been searching for many hours.

--
Michael Culley

Nov 15 '05 #1
1 1815
I couldn't find a reference to this anywhere, google groups had 4 hits when searching for "GP_BORDER". Three of these where
unanswered questions asking what its value was and the other one had answers that didn't state its value. Anyway, it seems the value
is zero, well, zero seems to work at least. Damn I hate it when I search for hours for a constant value and it turns out to be zero
:-)

--
Michael Culley
"Michael Culley" <mc*****@NOSPAMoptushome.com.au> wrote in message news:Oi**************@TK2MSFTNGP12.phx.gbl...
I'm trying to covert a userdrawn control written in C# to use the XP style. It consists only of a border, a button and a textbox.
The button and textbox is working fine but the border is not. The problem I have is that I cannot find the value of the constant
GP_BORDER as listed in this page of the help:

ms-help://MS.VSCC.2003/MS.MSDNQTR.2003APR.1033/shellcc/platform/commctls/userex/topics/partsandstates.htm

If anyone can help I would greatly appreciate it, I've been searching for many hours.

--
Michael Culley

Nov 15 '05 #2

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

Similar topics

19
by: Atif | last post by:
Hello all, In my html page I want to add an image say of 800x600. Now I want that when ever I am given two coordinates on this image say (x1, y1)=(50, 100) and (x2, y2)=(200, 300), the java script...
0
by: Tomi Holger Engdahl | last post by:
I am looking for a solution to add on-line drawing tool to a phpBB discussion board. The idea would be that the users can draw their own simple drawings with the tool and attach them easily as...
0
by: Ron Adam | last post by:
I want to be able to easily create reusable shapes in Tkinter and be able to use them in mid level dialogs. So after some experimenting I've managed to get something to work. The following does...
5
by: T. F. | last post by:
Hi, I need to create a box / field that the user can draw into (with some kind of pen). I also need to know how I can edit the size of the pen style and how I can "transport" the drawn image...
6
by: Rene | last post by:
I tried searching the newsgroups to see how do you draw a dotted line but I was unable to find an answer, drawing a straight line is very easy but not a dotted one. So the question is, how do I...
10
by: tshad | last post by:
I have a problem setting the background color of textbox on the fly. I tried using: applicantID.backcolor = "F6F6F6" and applicantID.backcolor = "#F6F6F6"
3
by: kamleshgk | last post by:
Hi, I have a requirement to draw a rectangle and a line on a the container control and sometimes as i move the mouse the drawing must occur on top of user controls and other controls, which are...
2
by: Dylan Parry | last post by:
Hi, I'm looking for examples of the different brush and fill styles that can be made using System.Drawing.Drawing2D. I haven't actually used this class before, so any example code accompanying...
7
by: serave | last post by:
Hi i'm new in this group. I need some help with php. I need to draw any mathematical function i get through a form? Please help me
1
by: Jeff Johnson | last post by:
"Nathan Sokalski" <njsokalski@hotmail.comwrote in message news:er%23hyAFOJHA.1896@TK2MSFTNGP02.phx.gbl... Since this is derived from a Web class, I can't really help much, being a desktop guy,...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.