Click here to Skip to main content
15,890,336 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalcopy multimap to vector Pin
Anonymous26-Mar-03 9:07
Anonymous26-Mar-03 9:07 
GeneralRe: copy multimap to vector Pin
jbarton26-Mar-03 9:48
jbarton26-Mar-03 9:48 
GeneralRe: copy multimap to vector Pin
Tim Smith26-Mar-03 10:00
Tim Smith26-Mar-03 10:00 
GeneralRe: copy multimap to vector Pin
jbarton26-Mar-03 10:04
jbarton26-Mar-03 10:04 
GeneralHosting a modeless dialog as a control (WTL) Pin
yarp26-Mar-03 4:26
yarp26-Mar-03 4:26 
GeneralRe: Hosting a modeless dialog as a control (WTL) Pin
yarp26-Mar-03 4:29
yarp26-Mar-03 4:29 
GeneralRe: Hosting a modeless dialog as a control (WTL) Pin
Michael Dunn26-Mar-03 17:56
sitebuilderMichael Dunn26-Mar-03 17:56 
GeneralRe: Hosting a modeless dialog as a control (WTL) Pin
yarp26-Mar-03 20:20
yarp26-Mar-03 20:20 
Ok, it works fine, thanks a lot Mike - btw I love your articles especially the last one on WTL.
I now have a CBuilder frame and WTL controls inside, cool Wink | ;) )

What I don't understand is that I did the same with a Win32 modeless and it was declared as follows:
IDD_TOOLBAR DIALOGEX 0, 0, 103, 63
STYLE DS_MODALFRAME | DS_3DLOOK | WS_CHILD | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_NOPARENTNOTIFY | WS_EX_TOOLWINDOW | WS_EX_CONTROLPARENT
CAPTION "Folders"
FONT 8, "MS Sans Serif"
BEGIN
    PUSHBUTTON      "&Press This Button",IDC_PRESS,9,19,79,14
    PUSHBUTTON      "&Or This One",IDC_OTHER,9,38,79,14
END

So I just copy/pasted those settings in my WTL dialog.

Tha fact is the Win32 dialog was hosted in a .dll but it was very simple with no style overriden:
g_hToolbar = CreateDialog((HINSTANCE)g_hModule, MAKEINTRESOURCE(IDD_TOOLBAR),
                            hWndParent, ToolDlgProc);
if (g_hToolbar != NULL) {
    ShowWindow(g_hToolbar, SW_SHOW);
}

I can't understand the difference but it probably lies inside the WTL headers that overrides default Win32 behaviour ?
The fact is declare the Dialog as a child with no border is better because that's what we are loking for.
Thanks again.

Yarp
http://www.senosoft.com/
GeneralSTL Pin
tsb26-Mar-03 4:26
tsb26-Mar-03 4:26 
GeneralRe: STL Pin
valikac26-Mar-03 11:45
valikac26-Mar-03 11:45 
GeneralRe: STL Pin
geo_m27-Mar-03 0:12
geo_m27-Mar-03 0:12 
GeneralSTL fstream format question Pin
Nitron25-Mar-03 11:31
Nitron25-Mar-03 11:31 
GeneralRe: STL fstream format question Pin
Nemanja Trifunovic25-Mar-03 11:42
Nemanja Trifunovic25-Mar-03 11:42 
GeneralRe: STL fstream format question Pin
Nitron25-Mar-03 11:43
Nitron25-Mar-03 11:43 
GeneralRe: STL fstream format question Pin
Nemanja Trifunovic25-Mar-03 11:52
Nemanja Trifunovic25-Mar-03 11:52 
GeneralRe: STL fstream format question Pin
Nitron25-Mar-03 13:23
Nitron25-Mar-03 13:23 
General_bstr_t problem Pin
particle2k25-Mar-03 6:32
particle2k25-Mar-03 6:32 
GeneralRe: _bstr_t problem Pin
particle2k25-Mar-03 6:39
particle2k25-Mar-03 6:39 
GeneralRe: _bstr_t problem Pin
geo_m25-Mar-03 10:16
geo_m25-Mar-03 10:16 
GeneralRe: _bstr_t problem Pin
particle2k26-Mar-03 1:36
particle2k26-Mar-03 1:36 
GeneralRe: _bstr_t problem Pin
geo_m26-Mar-03 1:55
geo_m26-Mar-03 1:55 
QuestionHow can I change my WTL project to a COM server Pin
Remon Spekreijse24-Mar-03 3:57
Remon Spekreijse24-Mar-03 3:57 
GeneralEnable/Disable toolbar buttons Pin
Tommy2k22-Mar-03 8:00
Tommy2k22-Mar-03 8:00 
GeneralRe: Enable/Disable toolbar buttons Pin
Michael Dunn22-Mar-03 8:33
sitebuilderMichael Dunn22-Mar-03 8:33 
GeneralRe: Enable/Disable toolbar buttons Pin
Ed Gadziemski23-Mar-03 2:52
professionalEd Gadziemski23-Mar-03 2:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.