Click here to Skip to main content
15,914,419 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL Vector sort, memory corruption Pin
Joaquín M López Muñoz2-Feb-05 2:28
Joaquín M López Muñoz2-Feb-05 2:28 
GeneralRe: STL Vector sort, memory corruption Pin
Ron Arnan2-Feb-05 3:55
Ron Arnan2-Feb-05 3:55 
GeneralRe: STL Vector sort, memory corruption Pin
Jörgen Sigvardsson2-Feb-05 10:57
Jörgen Sigvardsson2-Feb-05 10:57 
GeneralRe: STL Vector sort, memory corruption Pin
Joaquín M López Muñoz2-Feb-05 21:59
Joaquín M López Muñoz2-Feb-05 21:59 
GeneralWTL work around WM_NOTIFY Pin
conman1101-Feb-05 7:03
conman1101-Feb-05 7:03 
GeneralEnvDTE::Document.Open returns null Pin
JabraJabra1-Feb-05 6:12
JabraJabra1-Feb-05 6:12 
Generalget project full name Pin
JabraJabra1-Feb-05 2:49
JabraJabra1-Feb-05 2:49 
GeneralTBN_DROPDOWN : Problems with dropdown button in ATL Pin
tnguyen44431-Jan-05 10:16
tnguyen44431-Jan-05 10:16 
I have created a button with a drop down arrrow with the following code:
<br />
   TBBUTTON Button;<br />
   TCHAR* pButSearchCaption = _T("Search Web");<br />
   int iIndex0 = ::SendMessage(m_hWnd, TB_ADDSTRING, 0, (LPARAM)pButSearchCaption);<br />
   Button.fsState = TBSTATE_ENABLED;<br />
   Button.fsStyle = TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE | TBSTYLE_DROPDOWN; <br />
   Button.dwData = 0;<br />
   Button.iString = iIndex0;<br />
   Button.iBitmap = I_IMAGENONE;<br />
   ::SendMessage(m_hWnd, TB_INSERTBUTTON, 0, (LPARAM)&Button);<br />


I then add the following code to my message map to handle the TBN_DROPDOWN handler:

<br />
   BEGIN_MSG_MAP(CMFToolbar)<br />
      MESSAGE_HANDLER(WM_CREATE, OnCreate)<br />
      MESSAGE_HANDLER(WM_SIZE, OnSize)<br />
   ALT_MSG_MAP(1)<br />
      NOTIFY_CODE_HANDLER(TBN_DROPDOWN, OnButDropDown)<br />
   END_MSG_MAP()<br />
<br />
   LRESULT OnButDropDown(int idCtrl, LPNMHDR pnmh, BOOL& bHandled);<br />


However, whenever I click the arrown on the button, it seems as the OnButDropDown isn't being called. Anyone know why this is.
GeneralRe: TBN_DROPDOWN : Problems with dropdown button in ATL Pin
Michael Dunn31-Jan-05 11:14
sitebuilderMichael Dunn31-Jan-05 11:14 
GeneralCstring with ATL Pin
JabraJabra31-Jan-05 4:24
JabraJabra31-Jan-05 4:24 
GeneralRe: Cstring with ATL Pin
Ralph Wetzel31-Jan-05 5:49
Ralph Wetzel31-Jan-05 5:49 
GeneralRe: Cstring with ATL Pin
ThatsAlok31-Jan-05 18:09
ThatsAlok31-Jan-05 18:09 
GeneralRe: Cstring with ATL Pin
conman1101-Feb-05 2:12
conman1101-Feb-05 2:12 
GeneralRe: Cstring with ATL Pin
ThatsAlok1-Feb-05 2:54
ThatsAlok1-Feb-05 2:54 
GeneralRe: Cstring with ATL Pin
JabraJabra31-Jan-05 20:36
JabraJabra31-Jan-05 20:36 
Generalfindresource return null Pin
JabraJabra30-Jan-05 0:57
JabraJabra30-Jan-05 0:57 
GeneralParameter problem Pin
Monty229-Jan-05 22:14
Monty229-Jan-05 22:14 
GeneralRe: Parameter problem Pin
Jörgen Sigvardsson29-Jan-05 22:32
Jörgen Sigvardsson29-Jan-05 22:32 
GeneralRe: Parameter problem Pin
Monty229-Jan-05 22:40
Monty229-Jan-05 22:40 
GeneralFindResourceEx Pin
GanescuC27-Jan-05 23:36
GanescuC27-Jan-05 23:36 
QuestionHow to get the active project in visual studio Pin
JabraJabra26-Jan-05 21:51
JabraJabra26-Jan-05 21:51 
AnswerRe: How to get the active project in visual studio Pin
Stuart Dootson27-Jan-05 21:01
professionalStuart Dootson27-Jan-05 21:01 
GeneralRe: How to get the active project in visual studio Pin
JabraJabra31-Jan-05 4:25
JabraJabra31-Jan-05 4:25 
Generalwinlogon/Notify problem. Pin
dabayi26-Jan-05 4:11
dabayi26-Jan-05 4:11 
GeneralRe: winlogon/Notify problem. Pin
geo_m26-Jan-05 7:55
geo_m26-Jan-05 7:55 

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.