News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Dialog Box problem

Started by dougiem, September 22, 2005, 03:26:06 PM

Previous topic - Next topic

dougiem

I am trying to create a modal resource dialog box with no caption bar to hold a Tab Control which fills the dialog box (exits are on tabs).    Can anyone help with what styles I should be using. (xp)

thanks, dougiem.

petezl

I'm not sure I understood your question correctly!
What I have used is: MainDlg DIALOGEX MOVEABLE IMPURE LOADONCALL DISCARDABLE 10, 10, 274, 109, 0
STYLE DS_MODALFRAME | 0x0004 | DS_CENTER | WS_CAPTION | WS_SYSMENU |
WS_VISIBLE | WS_POPUP | DS_3DLOOK | WS_MINIMIZEBOX

for the main Dialog andChildDlg_1 DIALOG DISCARDABLE 20, 15, 232, 89
STYLE WS_CHILD
for the child's...

Peter.
Cats and women do as they please
Dogs and men should realise it.

dougiem

Hi, My oject is to have a tab control (3tabs) come up on my application Without the title bar or sys menu.
I can do this by creating a tab control window and populating. However I want my application to be 'dead' until
the tab control is closed. As in Model. As they say, 'A picture is worth a thousand words' attached - jpeg

Thanks, dougiem


[attachment deleted by admin]

Tedd

You can use styles such as "NOT WS_BORDER" so I would assume "NOT WS_SYSMENU | NOT WS_CAPTION" will work?
The problem is that the DIALOG resource sets certain styles by default - so you have to unset them :wink
No snowflake in an avalanche feels responsible.

petezl

It would be interested in any solution to this!
Tried last night, managed to remove everything apart from the XP colouring which would achieve what you want.

I expect the solution lies in catching the call to windows !

Peter.
Cats and women do as they please
Dogs and men should realise it.

lamer

That's all you need:
IDD_DLG1 DIALOGEX 6,6,272,172
STYLE 0x90000000 ;WS_POPUP | WS_VISIBLE
EXSTYLE 0x00000000

No border, no caption...

dougiem

Thanks all.
lamer, that worked great  :clap:

dougiem.