Click here to Skip to main content
15,906,708 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Generalperformant deserialization from a buffer to a std::Vector‏ Pin
manustone24-Apr-08 3:45
manustone24-Apr-08 3:45 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
Stuart Dootson28-Apr-08 1:22
professionalStuart Dootson28-Apr-08 1:22 
GeneralRe: performant deserialization from a buffer to a std::Vector‏ Pin
manustone28-Apr-08 5:31
manustone28-Apr-08 5:31 
GeneralA quick question on themes... Pin
Gene OK24-Apr-08 3:01
Gene OK24-Apr-08 3:01 
AnswerRe: A quick question on themes... Pin
Gene OK24-Apr-08 4:54
Gene OK24-Apr-08 4:54 
GeneralUsing VB.NET dll in VC++ Pin
ritz123424-Apr-08 0:17
ritz123424-Apr-08 0:17 
GeneralRe: Using VB.NET dll in VC++ Pin
Jörgen Sigvardsson1-May-08 0:16
Jörgen Sigvardsson1-May-08 0:16 
Questionhow to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin21-Apr-08 15:23
shwlin21-Apr-08 15:23 
I developed a desktop application with WTL, which contains a toolbar. The tool bar was ceated like as following codes. It works well. But when I tried to modify the style of the toolbar and make it to be docable or vertical. I failed in all attempts. I wonder why it becaoms so difficult with WTL while it's very easy with MFC to modofy a toolbar from horozontal to vertical dynamically. I tried to look for useful sample codes from internet. But, failed to find any matching samples. I believe it's a simplist requirement for a toolbar to be docable or to present in vertical direction. There must be many developers who ever encountered the same confusion as me. Then how do they resolve thire problems?
Can anyone provide me some hints or contribute some of his samplke codes. I'll apprieciate so much. I attahched my sample. Can anyone help me to modify the toolbar into vertical or docable one? Thanks a lot in advance.
//<br />
    //sample codes<br />
    // <br />
    BOOL CreateToolBarCtlr(HWND hParent, CToolBarCtrl& toolBarCtrl, RECT rcBar, LPCTSTR lpszCaption) { ATLASSERT( hParent && lpszCaption); if(hParent == NULL || lpszCaption == NULL) return FALSE; <br />
    // <br />
    // create tool bar <br />
    // <br />
    ATLASSERT(toolBarCtrl.m_hWnd == NULL); <br />
    if( toolBarCtrl.m_hWnd != NULL) return FALSE; <br />
    DWORD dwStyle = CCS_NODIVIDER | CCS_NOPARENTALIGN | CCS_NORESIZE;<br />
    dwStyle |= TBSTYLE_TRANSPARENT | TBSTYLE_FLAT | TBSTYLE_TOOLTIPS |<br />
               TBSTYLE_CUSTOMERASE; dwStyle |= ATN_CHILD_STYLE;    <br />
    toolBarCtrl.Create(hParent, rcBar, lpszCaption, dwStyle, 0); <br />
    ATLASSERT(toolBarCtrl.IsWindow()); <br />
    DWORD dwStyleEx = toolBarCtrl.GetExtendedStyle(); <br />
    dwStyleEx |= TBSTYLE_EX_DRAWDDARROWS; <br />
    toolBarCtrl.SetExtendedStyle(dwStyleEx);     <br />
    toolBarCtrl.SetButtonStructSize();<br />
    toolBarCtrl.SetImageList(m_hImageList); return TRUE; }.

AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin24-Apr-08 15:01
shwlin24-Apr-08 15:01 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
Charles Spirz27-Apr-08 11:51
Charles Spirz27-Apr-08 11:51 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl [modified] Pin
shwlin4-May-08 20:51
shwlin4-May-08 20:51 
AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin18-May-08 15:54
shwlin18-May-08 15:54 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
rajas6-May-09 6:04
rajas6-May-09 6:04 
GeneralFast search of a vector of strings Pin
bruccutler15-Apr-08 12:40
bruccutler15-Apr-08 12:40 
GeneralRe: Fast search of a vector of strings Pin
Andy Moore16-Apr-08 6:39
Andy Moore16-Apr-08 6:39 
Generalerror MIDL2025 : syntax error Pin
Ganesh_T14-Apr-08 0:53
Ganesh_T14-Apr-08 0:53 
QuestionRe: error MIDL2025 : syntax error Pin
Nathan Holt at EMOM16-Apr-08 10:56
Nathan Holt at EMOM16-Apr-08 10:56 
GeneralCoCreateInstanceAsAdmin Pin
swamy Narasimha13-Apr-08 23:14
swamy Narasimha13-Apr-08 23:14 
GeneralRe: CoCreateInstanceAsAdmin Pin
Jörgen Sigvardsson1-May-08 0:19
Jörgen Sigvardsson1-May-08 0:19 
QuestionVB Client Crashes while using ATL COM build in C++ Pin
garammasala13-Apr-08 22:56
garammasala13-Apr-08 22:56 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM16-Apr-08 11:35
Nathan Holt at EMOM16-Apr-08 11:35 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
garammasala21-Apr-08 18:15
garammasala21-Apr-08 18:15 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM22-Apr-08 6:27
Nathan Holt at EMOM22-Apr-08 6:27 
GeneralRe: VB Client Crashes while using ATL COM build in C++ [modified] Pin
garammasala28-Apr-08 2:49
garammasala28-Apr-08 2:49 
GeneralConverting MFC code to WTL [modified] Pin
Rune Andersen11-Apr-08 3:18
Rune Andersen11-Apr-08 3:18 

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.