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

ATL / WTL / STL

 
QuestionHow do I know if Internet Explorer has any scrollbars? Pin
Tommy Svensson28-Dec-06 4:55
Tommy Svensson28-Dec-06 4:55 
AnswerRe: How do I know if Internet Explorer has any scrollbars? Pin
prasad_som28-Dec-06 18:08
prasad_som28-Dec-06 18:08 
QuestionWTL resize-drag Pin
ohadp27-Dec-06 22:15
ohadp27-Dec-06 22:15 
AnswerRe: WTL resize-drag Pin
Michael Dunn28-Dec-06 7:11
sitebuilderMichael Dunn28-Dec-06 7:11 
Questionproblem in soap connection Pin
salman kazi26-Dec-06 19:16
salman kazi26-Dec-06 19:16 
QuestionRe: problem in soap connection Pin
ajitatif angajetor26-Dec-06 22:46
ajitatif angajetor26-Dec-06 22:46 
AnswerRe: problem in soap connection Pin
salman kazi27-Dec-06 18:13
salman kazi27-Dec-06 18:13 
QuestionWin98 GetMenuItemCount returns -1 Pin
ajitatif angajetor26-Dec-06 4:59
ajitatif angajetor26-Dec-06 4:59 
Hi everyone,

I have a project with a menu on it and it notifies me by WM_MENUCOMMAND message.I had to do so,because my menu is dynamically created with values read from registry.Anyway,what I'm doing is theorically easy.This is the code for the WM_MENUCOMMAND event handler:

HMENU menu = (HMENU)lParam;<br />
// m_SystemVersionInfo is got with GetVersionEx,no problem<br />
if (m_SystemVersionInfo.dwMajorVersion <= 4) // Windows Me or Lower<br />
   index = (int)(wParam >> 16);<br />
else<br />
   index = (int)wParam;<br />
int nItems = GetMenuItemCount(menu);<br />
<br />
if (index == nItems - 1) // last item on menu<br />
{<br />
   // do something<br />
}<br />
else<br />
{<br />
  // do some other thing<br />
}


the code works fine on Win2K/XP but nItems shows -1 on Win98.the strange thing is GetLastError returns nothing.MSDN says you can not trust GetLastError on Win98 either,so I didn't bother to look up the eroor code (I am unable to debug on Win98).

What could make GetMenuItemCount return -1 only on Win98?
QuestionRe: Win98 GetMenuItemCount returns -1 Pin
ajitatif angajetor27-Dec-06 0:39
ajitatif angajetor27-Dec-06 0:39 
QuestionATL event help!! Pin
alicqin24-Dec-06 22:45
alicqin24-Dec-06 22:45 
QuestionHow to watch the objects value in a STL container in VS2003? Such as Vector Pin
Best Kiluyar21-Dec-06 16:07
Best Kiluyar21-Dec-06 16:07 
AnswerRe: How to watch the objects value in a STL container in VS2003? Such as Vector Pin
Stuart Dootson21-Dec-06 20:42
professionalStuart Dootson21-Dec-06 20:42 
GeneralRe: How to watch the objects value in a STL container in VS2003? Such as Vector Pin
Rob Caldecott21-Dec-06 22:31
Rob Caldecott21-Dec-06 22:31 
GeneralRe: How to watch the objects value in a STL container in VS2003? Such as Vector Pin
Stuart Dootson22-Dec-06 0:16
professionalStuart Dootson22-Dec-06 0:16 
QuestionVery Urgent:Overriding Idispatch Invoke Pin
rana7420-Dec-06 23:19
rana7420-Dec-06 23:19 
AnswerRe: Very Urgent:Overriding Idispatch Invoke Pin
prasad_som21-Dec-06 0:06
prasad_som21-Dec-06 0:06 
QuestionCommandbarCtrl crashes on constrctor at Run-time Pin
Daniel Ortega20-Dec-06 22:59
Daniel Ortega20-Dec-06 22:59 
QuestionATL Dialog help Pin
jhinze19-Dec-06 4:13
jhinze19-Dec-06 4:13 
AnswerRe: ATL Dialog help Pin
Michael Dunn19-Dec-06 8:02
sitebuilderMichael Dunn19-Dec-06 8:02 
GeneralRe: ATL Dialog help Pin
jhinze19-Dec-06 8:03
jhinze19-Dec-06 8:03 
GeneralRe: ATL Dialog help Pin
Michael Dunn19-Dec-06 9:44
sitebuilderMichael Dunn19-Dec-06 9:44 
AnswerRe: ATL Dialog help Pin
prasad_som19-Dec-06 17:48
prasad_som19-Dec-06 17:48 
GeneralRe: ATL Dialog help Pin
Steve S20-Dec-06 2:52
Steve S20-Dec-06 2:52 
AnswerRe: ATL Dialog help Pin
prasad_som20-Dec-06 17:57
prasad_som20-Dec-06 17:57 
GeneralRe: ATL Dialog help Pin
jhinze20-Dec-06 20:12
jhinze20-Dec-06 20:12 

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.