I have been studying the dialogs examples to understand this.

I want to make the dialog box smaller.
The box got smaller but the text displayed is no longer centered.



; Rename to rsrc.rc before compiling
#define IDD_DLG 1000
#define IDC_EDT2 101
IDD_DLG DIALOGEX 6,5,150,28 ; last 2 are width and height
CAPTION " USB Watcher"
FONT 8,"MS Sans Serif",0,0
STYLE 0x10C808C0
EXSTYLE 0x00000088
BEGIN
  CONTROL "",IDC_EDT2,"Edit",0x50010801,10,5,220,13,0x00000200
END
#define MANIFEST 24
#define IDR_MANIFEST 1
Posted on 2010-06-07 16:51:15 by skywalker



IDD_DLG DIALOGEX 6,5,150,28 ; last 2 are width and height
                    ^^^
  CONTROL "",IDC_EDT2,"Edit",0x50010801,10,5,220,13,0x00000200
                                            ^^^



Child control is wider than client area.
Posted on 2010-06-07 17:39:47 by baldr
Thanks.
Posted on 2010-06-08 06:19:47 by skywalker