News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

User defined shapes?

Started by hfheatherfox07, April 29, 2011, 03:20:31 AM

Previous topic - Next topic

hfheatherfox07

Quote from: qWord on April 30, 2011, 11:06:22 PM
here an example using GDI+

Do you have one with "IDC_SHP1" in a resource file that does not deal with regions?

I looked in the MASM32 examples and the only thing that IDC_SHP1 is used there , is for drawing "V" grooves ???

dedndave

after looking at XXcontrols, i see he made a round button in resource

hfheatherfox07

Quote from: dedndave on April 30, 2011, 11:15:17 PM
after looking at XXcontrols, i see he made a round button in resource

you lost me there? what are you talking about?

dedndave

well, at the beginning of this thread, i mentioned XXcontrols - i think it was the 2nd post
if you look at his "button" example, you will see what i am on about   :P

qWord

sorry hfheatherfox07,
I did not understand what you are trying to do. What is your problem with these resource-ID IDC_SHP1? - it is just some number.
FPU in a trice: SmplMath
It's that simple!

hfheatherfox07

Quote from: qWord on April 30, 2011, 11:25:15 PM
sorry hfheatherfox07,
I did not understand what you are trying to do. What is your problem with these resource-ID IDC_SHP1? - it is just some number.

my first post if you open my attachment and look at the rsrc.rc  you will see what   IDC_SHP1

do you use rsrc.rc files?

I use ResEd to make and edit mine:



you can get it free here:

http://radasm.cherrytree.at/resed/

hfheatherfox07

QWord look at my 10th post down in the first page there are 2 attachments , they are what I am trying to do... you will understand IDC_SHP  :bg

hfheatherfox07

Quote from: dedndave on April 30, 2011, 11:23:26 PM
well, at the beginning of this thread, i mentioned XXcontrols - i think it was the 2nd post
if you look at his "button" example, you will see what i am on about   :P

OK now I see that has nothing to do with IDC_SHP ... it is more to do with buttons ...

Gunner

all "IDC_SHP" is, is a static control.  Nothing fancy.  If you want to have a special shape, use an owner drawn static control
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

hfheatherfox07

Quote from: Gunner on April 30, 2011, 11:34:12 PM
all "IDC_SHP" is, is a static control.  Nothing fancy.  If you want to have a special shape, use an owner drawn static control

LOL that is funny ...I know that

if you look at my first post  or my 10th on the first page you will see that I am trying to use "IDC_SHP" , to make my window to that region ... so If i have 2 IDC_SHP statics

that is what will define my window shape those 2  IDC_SHP statics....


qWord

if you want to create an window like in your example "What I am trying to accomplish but with SHP in rsrc.zip", you MUST deal with regions.
FPU in a trice: SmplMath
It's that simple!

Gunner

That example you posted uses regions...  Why don't you want to use regions?
~Rob (Gunner)
- IE Zone Editor
- Gunners File Type Editor
http://www.gunnerinc.com

hfheatherfox07

Quote from: Gunner on April 30, 2011, 11:43:31 PM
That example you posted uses regions...  Why don't you want to use regions?

The whole point is not to...

I do not wish to add bitmaps

hfheatherfox07

Quote from: qWord on April 30, 2011, 11:42:03 PM
if you want to create an window like in your example "What I am trying to accomplish but with SHP in rsrc.zip", you MUST deal with regions.

not true ... you do have to draw the rects but no regions
I want to have the clear window separating the 2 squares
when I get home I will grab that example that I have done that way and post it...
the cool thing is that you can open the rsrc.rs file change the IDC_SHP rectangle size and your window size changes
the rects are drown to the resource dimensions so you do not always have to plug in new  dimensions  :8)

hfheatherfox07

Ok here they are ...
This was posted on a foreign language forum (I think it was in Chinese) to show off this persons MASM skills...

I am kicking my self in the for deleting the source by accident  :(
I do not remember were I originaly downloaded this  :(

as you can see the IDC_SHP directly effects the size of the windows