slippnslide
July 23rd, 2006, 05:49 PM
I can't find an example resource script and I have no clue how to get CreateWindowEx() to make edit boxes. So, I was wondering if anyone would be willing to share the code on how to make a regular edit box, a password box, and an "OK" button?
p-designs
July 23rd, 2006, 06:02 PM
Well since nobody has replied to my topic yet I'll give you a little help.
Just read at this page, it tells you how to use CreateWindowEx to create buttons/edits/etc..
http://www.minigui.org/docs/mpg-2.0-5.shtml
Example:
hEdit1 = CreateWindow (CTRL_EDIT,
"Edit Box 1",
WS_CHILD | WS_VISIBLE | WS_BORDER,
IDC_EDIT1,
20, 80, 100, 24, hStaticWnd1, 0);
Download ApiViewer (search on google) for constants/functions if you're wondering where all these different constants/variables are coming from so you can test things out. One of the constants defines password masking an edit window I believe.
slippnslide
July 24th, 2006, 10:27 AM
Great, that works perfectly.