View Full Version: edit in a dialog

C++ Learning Community > win32 api C++ programming > edit in a dialog


Title: edit in a dialog
Description: should be simple


ih8censorship - December 9, 2004 04:30 AM (GMT)
how do i create an edit in a dialog? i know for a button you do
CODE
PUSHBUTTON      "click me!",clickit,10,10,50,15
but i cant figure out how to do an edit.... i suppose maybey with a call to createwindowex but that doesnt seem right in dealing with the .rc file and stuff......

C-Man - December 9, 2004 07:12 AM (GMT)
why not use the VC++ resource editor

InfoProducts - December 9, 2004 02:15 PM (GMT)
i guess its EDITTEXT

CODE

EDITTEXT RES_ID,x,y,w,h,STYLES

ih8censorship - December 9, 2004 04:07 PM (GMT)
QUOTE
why not use the VC++ resource editor

because i want to know HOW it works, and i cant figure the resource editor for dialogs out.......

yep EDITTEXT was what i needed :D

TheHawgMaster - December 9, 2004 06:11 PM (GMT)
QUOTE (ih8censorship @ Dec 9 2004, 09:07 AM)
i cant figure the resource editor for dialogs out...

heh the resource editor is one of the few things I like a about VC++ :unsure:

ih8censorship - December 9, 2004 07:02 PM (GMT)
id probly like it if i could figure out how to work it :lol:

Joel - December 9, 2004 10:15 PM (GMT)
neh, pure CreateWindow nor CreateWindowEx ;)

InfoProducts - December 26, 2004 04:44 AM (GMT)
QUOTE (Lobo Lunar @ Dec 9 2004, 10:15 PM)
neh, pure CreateWindow nor CreateWindowEx ;)

he was talking about dialogs not windows.

Joel - December 26, 2004 03:25 PM (GMT)
The thing I like from dialogs (in VS) is that you drop the control, resize it, add the id, etc... easy to be hacked..

And making it from CreateWindow(Ex) isn't the exception, but at least Resource Hacker won't be happy :)


InfoProducts - December 26, 2004 03:52 PM (GMT)
though resource changers can access all ur dialog resource, they can just change positions of certain objects. if they delete them the program simply wont work. atleast they dont have access to the source code :).

donprogc++ - December 26, 2004 06:24 PM (GMT)
QUOTE (Lobo Lunar @ Dec 26 2004, 08:25 AM)
The thing I like from dialogs (in VS) is that you drop the control, resize it, add the id, etc... easy to be hacked..

And making it from CreateWindow(Ex) isn't the exception, but at least Resource Hacker won't be happy :)

Thats why I hesitate to use Dialogs too

donprogc++ - December 26, 2004 06:29 PM (GMT)
Well when there are programs like this it doesnt matter
PVDasm

C-Man - December 26, 2004 06:32 PM (GMT)
there are Exe packers that can't be expanded by default
it would protect your exe from beeing disassembled by the less hardcore hackers
ofcourse a good hacker can reverse engeneer teh stub code ;)

InfoProducts - December 27, 2004 02:47 AM (GMT)
dialogs reduce development time, though you can use cwex if u want. visual basic has a fast development process not because of it runtimes, but because it uses dialogs. though the runtime slow down vb apps drastically.

donprogc++ - December 27, 2004 03:13 AM (GMT)
If you want to use Dialogs and don't want your prog to be decompiled do what C-man said use an EXE-packer works on ResHacker and most other programs

InfoProducts - December 28, 2004 04:04 AM (GMT)
use dialogs or not, ur program can be disassembled.

MonkeyMan - December 28, 2004 05:00 AM (GMT)
Just wondering, well, how much would you really want people out of this dialog? :lol: Well, hopefully more then I do because I think they are affraid of my dialogs/windows controls orginization. :lol:




* Hosted for free by InvisionFree