Thread overview
[Issue 21655] win32 dialog app, main dialog box is not centered
1 day ago
Tao
17 hours ago
anonymous4
February 22
https://issues.dlang.org/show_bug.cgi?id=21655

Adam D. Ruppe <destructionator@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |destructionator@gmail.com

--- Comment #1 from Adam D. Ruppe <destructionator@gmail.com> ---
Do you have a resource file to go with the code btw?

--
1 day ago
https://issues.dlang.org/show_bug.cgi?id=21655

--- Comment #2 from Tao <top398@139.com> ---
Of course I have.

dlg.rc:

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
#include "resource.h"

LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
IDD_DIALOG1 DIALOG 0, 0, 186, 95
STYLE DS_3DLOOK | DS_CENTER | DS_MODALFRAME | DS_SHELLFONT | WS_CAPTION |
WS_VISIBLE | WS_POPUP | WS_SYSMENU
CAPTION "Dialog"
FONT 8, "Ms Shell Dlg"
{
    PUSHBUTTON      "Cancel", IDCANCEL, 129, 24, 50, 14, 0, WS_EX_LEFT
    DEFPUSHBUTTON   "OK", IDOK, 129, 7, 50, 14, 0, WS_EX_LEFT
}

----------

resource.h:

#ifndef IDC_STATIC
#define IDC_STATIC (-1)
#endif

#define IDD_DIALOG1                             100

----------

Resource is compiled with vc2010's rc.exe.
dlg.d is compiled with "dmd dlg.d dlg.res"

--
17 hours ago
https://issues.dlang.org/show_bug.cgi?id=21655

anonymous4 <dfj1esp02@sneakemail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|phobos                      |tools

--- Comment #3 from anonymous4 <dfj1esp02@sneakemail.com> ---
Probably duplicate of issue 2035, try solution there.

--