Olá!
A sintaxe correta da HWGUI está nos includes e nos fontes.
/*
* Window Styles
*/
#ifndef WVTWINLG_CH
#define WS_OVERLAPPED 0
#define WS_POPUP 2147483648 // 0x80000000L
#define WS_CHILD 1073741824 // 0x40000000L
#define WS_MINIMIZE 536870912 // 0x20000000L
#define WS_VISIBLE 268435456 // 0x10000000L
#define WS_DISABLED 134217728 // 0x08000000L
#define WS_CLIPSIBLINGS 67108864 // 0x04000000L
#define WS_CLIPCHILDREN 33554432
#define WS_MAXIMIZE 16777216 // 0x01000000L
#define WS_CAPTION 12582912 // 0x00C00000L
#define WS_BORDER 8388608 // 0x00800000L
#define WS_DLGFRAME 4194304 // 0x00400000L
#define WS_EX_STATICEDGE 131072 // 0x00020000L
#define WS_VSCROLL 2097152 // 0x00200000L
#define WS_HSCROLL 1048576 // 0x00100000L
#define WS_SYSMENU 524288 // 0x00080000L
#define WS_THICKFRAME 262144 // 0x00040000L
#define WS_GROUP 131072 // 0x00020000L
#define WS_TABSTOP 65536 // 0x00010000L
#define WS_MINIMIZEBOX 131072 // 0x00020000L
#define WS_MAXIMIZEBOX 65536 // 0x00010000L
#define WS_SIZEBOX WS_THICKFRAME
#define WS_OVERLAPPEDWINDOW WS_OVERLAPPED + WS_CAPTION + WS_SYSMENU + WS_THICKFRAME + WS_MINIMIZEBOX + WS_MAXIMIZEBOX
#define WS_EX_DLGMODALFRAME 1 // 0x00000001L
#define WS_EX_NOPARENTNOTIFY 4 // 0x00000004L
#define WS_EX_TOPMOST 8 // 0x00000008L
#define WS_EX_ACCEPTFILES 16 // 0x00000010L
#define WS_EX_TRANSPARENT 32 // 0x00000020L
#define WS_EX_TOOLWINDOW 128
#define RDW_INVALIDATE 1 // 0x0001
#define RDW_INTERNALPAINT 2 // 0x0002
#define RDW_ERASE 4 // 0x0004
#define RDW_VALIDATE 8 // 0x0008
#define RDW_NOINTERNALPAINT 16 // 0x0010
#define RDW_NOERASE 32 // 0x0020
#define RDW_NOCHILDREN 64 // 0x0040
#define RDW_ALLCHILDREN 128 // 0x0080
#define RDW_UPDATENOW 256 // 0x0100
#define RDW_ERASENOW 512 // 0x0200
#define RDW_FRAME 1024 // 0x0400
#define RDW_NOFRAME 2048 // 0x0800
#endif
Essa por exemplo está no \include\windows.ch
Não sei/lembro, pq neste caso é uma windows MAIN e na DIALOG vou ver por aqui, estou no Linux agora.
Use:
STYLE WS_DLGFRAME + WS_SYSMENU + DS_CENTER
E vai experimentando qual tira o X pode ser um conjunto desses.
Parece que é essa tal WS_SYSMENU.
Saudações,
Itamar M. Lins Jr.