Log in

View Full Version : Need Help With Masm Dialog Resource File Data


kittmaster
February 17th, 2006, 18:44
Hey guys,

I'm working with ziggy's keygen 0 template and have some questions regarding the window sizing parameter inn the rcsc.rc file

Below is the code with text of what I understand and the questions in which I don't. I've done some searching on google and the help files don't tell me anything. So if you could clarify I might be well on my way!

1 DIALOGEX 0, 0, 225, 85, 0 <<<< 0?, 0?, 225 I found is length, 85 is width, 0?....???? Lost on the numbering
STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_POPUPWINDOW | WS_VISIBLE | WS_DLGFRAME | WS_MINIMIZEBOX | WS_MAXIMIZEBOX <<<understood
EXSTYLE WS_EX_STATICEDGE
CAPTION "Kittmaster's Keygen"<<<understood
FONT 7, "MS SANS SERIF"<<<understood

BEGIN
ICON 3, 1, 4, 4, 35, 35 ; place application icon top left of dialog box <<<<Makes sense, but what do the numbers do? I think the 35 35 is the height and width, but what about the rest????

EDITTEXT 1002, 33, 26, 183, 10, NOT WS_BORDER | ES_CENTER, WS_EX_STATICEDGE <<<<<< I know the 1002 is the command variable from the asm file, but what does the rest of the number do? I think they are offsets, but offset to what and where???...........I may need some RTFM help, but where IS the manual that explains this part? The border, center, staticedge I get


EDITTEXT 1003, 33, 44, 183, 10, NOT WS_TABSTOP | NOT WS_BORDER | ES_CENTER | <<<<see above

ES_AUTOHSCROLL | ES_NOHIDESEL | ES_READONLY, WS_EX_STATICEDGE
PUSHBUTTON "Generate", 1005, 50, 65, 50, 12, BS_CENTER | BS_VCENTER, WS_EX_STATICEDGE<<<understood
PUSHBUTTON "Copy", 1006, 122, 65, 30, 12, BS_CENTER | BS_VCENTER, WS_EX_STATICEDGE<<<understood
PUSHBUTTON "About", 1007, 156, 65, 30, 12, BS_CENTER | BS_VCENTER, WS_EX_STATICEDGE<<<understood
PUSHBUTTON "Close", 1004, 189, 65, 30, 12, BS_CENTER | BS_VCENTER, WS_EX_STATICEDGE<<<understood

CTEXT "Appname", 1001, 33, 8, 183, 10, SS_SUNKEN, WS_EX_STATICEDGE <<<understood except numbers??
LTEXT "Name", 4, 5, 26, 26, 10 <<<understood except numbering
LTEXT "Serial", 5, 4, 44, 26, 10<<<understood except numbering

gabri3l
February 17th, 2006, 19:16
the first 2 numbers you see are top and left placement.
In windows, location is determined top to bottom, left to right. With 0,0 being at the top left corner of the screen/application.
Code:

12345
0 ------>
1 |
2 |
3 |
4 |
V

So 0,0 means that the object is placed in the absolute top left

kittmaster
February 17th, 2006, 19:33
ok that takes care of 4 out of 5

If the first two are the absolutes 0(top to bottom), 0(Left to right), 255(height), 255(width), 0(What is does the last number do?)

Thanks for the fast response

Chris

LLXX
February 17th, 2006, 20:42
Quote:
[Originally Posted by kittmaster]I've done some searching on google and the help files don't tell me anything

You have NOT searched! This is one of the first results that I found just by entering ".rc +file +resource +syntax" into Google!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/resource_definition_statements.asp

Start reading!

kittmaster
February 17th, 2006, 21:06
Quote:
[Originally Posted by LLXX]You have NOT searched! This is one of the first results that I found just by entering ".rc +file +resource +syntax" into Google!

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/tools/resource_definition_statements.asp

Start reading!


Um........yeah I did......I was looking for information on rsrc.rc in google and how to manipulate it to do what I needed.......but anyway, I found the correct syntax rc.hlp file after someone directed me to it.

I've been around a while and not a noob. I'm really trying to expand from serial fishing and byte patching to keygenning........brow beating someone doesn't accomplish anything.

But thank you for the reply, it was helpful

Chris

Rackmount
February 18th, 2006, 09:53
There is searching and there is effective searching. Look at the searchlores page linked at bottom to learn more of the latter. I know that it has taught me alot. Good luck in your progression.

Rackmount

kittmaster
February 18th, 2006, 12:04
Quote:
[Originally Posted by Rackmount]There is searching and there is effective searching. Look at the searchlores page linked at bottom to learn more of the latter. I know that it has taught me alot. Good luck in your progression.

Rackmount


Reading through it now. Very helpful........probably should have done it sooner.......but you know how that goes........

thanks

Chris