I Like It !

Saturday, February 13, 2010

Dialog item

Command Comments
0040102D |. FF15 3C214200 CALL DWORD PTR DS:[ USER32.DialogBoxPar ; \USER32.DialogBoxParamA
Command Comments
004012E1 |. FF15 24214200 CALL DWORD PTR DS:[ USER32.SetDlgItemTe ; \USER32.SetDlgItemTextA

Dialog item flags
main | Dialog API | Dialog items
It is possible to control DialogAPI behavior and appearance using flags. To know which flags affect a specific control, read in the control item's description.
Flag Description
DIF_3STATE A DI_CHECKBOX control will have 3 states.
DIF_BOXCOLOR Control text will have frame color.
DIF_BTNNOCLOSE For button -- do not close dialog.
DIF_CENTERGROUP Centering a group of controls.
DIF_CENTERTEXT Text centering in static controls.
DIF_COLORMASK Mask for color attributes selection.
DIF_DISABLE Disabling a control.
DIF_DROPDOWNLIST Defines read-only list style.
DIF_EDITEXPAND Environment variables "expansion" in edit boxes.
DIF_EDITOR Sequentially defined edit boxes.
DIF_GROUP Grouping of radio buttons.
DIF_HISTORY Allows to keep history for edit boxes.
DIF_HIDDEN Hides a control.
DIF_LEFTTEXT Left-align title of a frame.
DIF_LISTAUTOHIGHLIGHT Automatic assignment of list hotkeys.
DIF_LISTNOAMPERSAND Allows showing ampersands in the listbox.
DIF_LISTNOBOX Display listbox without a frame.
DIF_LISTNOCLOSE Do not close the dialog upon list item selection.
DIF_LISTWRAPMODE "Wraps" list upon navigation.
DIF_MANUALADDHISTORY The dialog handler itself will be adding lines to the history.
DIF_MASKEDIT Defines mask in edit boxes.
DIF_MOVESELECT Change selection in radio buttons group upon input focus change.
DIF_NOAUTOCOMPLETE Disable autocompletion for input lines.
DIF_NOBRACKETS Displays button caption without brackets.
DIF_NOFOCUS Control item can't receive input focus.
DIF_NOTCVTUSERCONTROL do not convert characters (CHAR_INFO::Char) while writing the virtual buffer to the screen.
DIF_READONLY Makes edit boxes "read-only".
DIF_SELECTONENTRY Edit box contents will be selected upon receiving input focus.
DIF_SEPARATOR Text string is displayed as a separator (single horizontal line).
DIF_SEPARATOR2 Text string is displayed as a separator (double horizontal line).
DIF_SETCOLOR Element color definition.
DIF_SHOWAMPERSAND Show ampersand character not using it for the hot key definition.
DIF_USELASTHISTORY Initial value is taken from the history list.
DIF_VAREDIT Edit box without size limit.


CONST FARMESSAGEFLAGS
FMSG_WARNING 0x00000001
FMSG_ERRORTYPE 0x00000002
FMSG_KEEPBACKGROUND 0x00000004
FMSG_DOWN 0x00000008
FMSG_LEFTALIGN 0x00000010
FMSG_ALLINONE 0x00000020
FMSG_MB_OK 0x00010000
FMSG_MB_OKCANCEL 0x00020000
FMSG_MB_ABORTRETRYIGNORE 0x00030000
FMSG_MB_YESNO 0x00040000
FMSG_MB_YESNOCANCEL 0x00050000
FMSG_MB_RETRYCANCEL 0x00060000
;

\ DialogItemTypes
0 enum:
DI_TEXT
DI_VTEXT
DI_SINGLEBOX
DI_DOUBLEBOX
DI_EDIT
DI_PSWEDIT
DI_FIXEDIT
DI_BUTTON
DI_CHECKBOX
DI_RADIOBUTTON
DI_COMBOBOX
DI_LISTBOX
; DROP
255 CONSTANT DI_USERCONTROL

CONST FarDialogItemFlags
DIF_COLORMASK 0x000000FF
DIF_SETCOLOR 0x00000100
DIF_BOXCOLOR 0x00000200
DIF_GROUP 0x00000400
DIF_LEFTTEXT 0x00000800
DIF_MOVESELECT 0x00001000
DIF_SHOWAMPERSAND 0x00002000
DIF_CENTERGROUP 0x00004000
DIF_NOBRACKETS 0x00008000
DIF_MANUALADDHISTORY 0x00008000
DIF_SEPARATOR 0x00010000
DIF_VAREDIT 0x00010000
DIF_SEPARATOR2 0x00020000
DIF_EDITOR 0x00020000
DIF_LISTNOAMPERSAND 0x00020000
DIF_LISTNOBOX 0x00040000
DIF_HISTORY 0x00040000
DIF_BTNNOCLOSE 0x00040000
DIF_CENTERTEXT 0x00040000
DIF_EDITEXPAND 0x00080000
DIF_DROPDOWNLIST 0x00100000
DIF_USELASTHISTORY 0x00200000
DIF_MASKEDIT 0x00400000
DIF_SELECTONENTRY 0x00800000
DIF_3STATE 0x00800000
DIF_LISTWRAPMODE 0x01000000
DIF_LISTAUTOHIGHLIGHT 0x02000000
DIF_LISTNOCLOSE 0x04000000
DIF_HIDDEN 0x10000000
DIF_READONLY 0x20000000
DIF_NOFOCUS 0x40000000
DIF_DISABLE 0x80000000
;
See also:

EAX 00000001
ECX 00000001
EDX 0012F9F0 ASCII "1111-2222-3333-4444-5555-6666"
EBX 000003EF
ESP 0012F980
EBP 0012FA58
ESI 00401048 eps.00401048
EDI 006400B0
EIP 004014E2 eps.004014E2

C 0 ES 0023 32bit 0(FFFFFFFF)
P 0 CS 001B 32bit 0(FFFFFFFF)
A 0 SS 0023 32bit 0(FFFFFFFF)
Z 0 DS 0023 32bit 0(FFFFFFFF)
S 0 FS 003B 32bit 7FFDF000(FFF)
T 0 GS 0000 NULL
D 0
O 0 LastErr 00000000 ERROR_SUCCESS
EFL 00000202 (NO,NB,NE,A,NS,PO,GE,G)

ST0 empty -??? FFFF 00000000 00000000
ST1 empty -??? FFFF 00000000 00000000
ST2 empty -??? FFFF 00000000 00000000
ST3 empty -??? FFFF 00000000 00000000
ST4 empty 1.0905992582750287290e+441
ST5 empty 0.0
ST6 empty 0.0
ST7 empty 15.500000000000000000
3 2 1 0 E S P U O Z D I
FST 0000 Cond 0 0 0 0 Err 0 0 0 0 0 0 0 0 (GT)
FCW 027F Prec NEAR,53 Mask 1 1 1 1 1 1
Last cmnd 0000:00000000

XMM0 00000000 00000083 BC881C50 BF82DBF9
XMM1 BC881C50 984146D4 BF82DC30 98414644
XMM2 00000000 E37ADB00 E1D74DA8 BF80EE6B
XMM3 E175DB08 805D3F6E 9841461C E1CF0119
XMM4 E1CF0118 E1CF0118 00000000 E1EAD480
XMM5 984146B8 805D45F3 805D45EB 98414660
XMM6 00000000 E1CF0118 E37ADB00 00000000
XMM7 00000352 0000016F 000001AE 4CB07E6C
P U O Z D I
MXCSR 00009FC0 FZ 1 DZ 1 Err 0 0 0 0 0 0
Rnd NEAR Mask 1 1 1 1 1 1