Click here to Skip to main content
15,905,322 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: List View column formatting Pin
Roger Allen29-Jan-03 1:18
Roger Allen29-Jan-03 1:18 
GeneralTray Icon Pin
progman28-Jan-03 7:52
progman28-Jan-03 7:52 
GeneralRe: Tray Icon Pin
Abbas_Riazi28-Jan-03 18:13
professionalAbbas_Riazi28-Jan-03 18:13 
Generalsubsubmenu flyouts.... Pin
ns28-Jan-03 6:56
ns28-Jan-03 6:56 
GeneralUsing SetMenuInfo Pin
ns28-Jan-03 6:24
ns28-Jan-03 6:24 
GeneralRe: Using SetMenuInfo Pin
ns28-Jan-03 8:45
ns28-Jan-03 8:45 
GeneralRe: Using SetMenuInfo Pin
Joaquín M López Muñoz28-Jan-03 8:48
Joaquín M López Muñoz28-Jan-03 8:48 
GeneralI think that works.... Pin
ns28-Jan-03 9:13
ns28-Jan-03 9:13 
I put it in stdafx.h:

But I do get:

NOTE: WINVER has been defined as 0x0500 or greater which enables
Windows NT 5.0 and Windows 98 features. When these headers were released,
Windows NT 5.0 beta 1 and Windows 98 beta 2.1 were the current versions.
For this release when WINVER is defined as 0x0500 or greater, you can only
build beta or test applications.  To build a retail application,
set WINVER to 0x0400 or visit http://www.microsoft.com/msdn/sdk
to see if retail Windows NT 5.0 or Windows 98 headers are available.
See the SDK release notes for more information

=========================================================
And got rid of the #include for winuser.h

According to http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnw98bk/html/thewindowshheaderfile.asp I dont need to explicitly include it...

Now I'm getting:

HMENU m_hMenu = submenu->GetSafeHmenu();

  LPCMENUINFO  lpcmi;

  <code>lpcmi->dwStyle = MNS_NOTIFYBYPOS;</code>  line 195

     SetMenuInfo(m_hMenu, lpcmi);


C:\BKView.cpp(195) : error C2166: l-value specifies const object


I must be doing something really dumb!!!

Actually, for some reason my machine MSDN doesnt have CMenu as h aving a SetMEnuINfo member, but the web mSDN does!!!!!!

SO I think I might just do
submenu->SetMenuInfo( lpcmi);</
and skip the HMENU stuff.

My local MSDN isnt that old!!!!

Appreciate your help,
ns
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:17
Joaquín M López Muñoz28-Jan-03 9:17 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:24
ns28-Jan-03 9:24 
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:26
Joaquín M López Muñoz28-Jan-03 9:26 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:40
ns28-Jan-03 9:40 
GeneralRe: I think that works.... Pin
Joaquín M López Muñoz28-Jan-03 9:47
Joaquín M López Muñoz28-Jan-03 9:47 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:45
ns28-Jan-03 9:45 
GeneralRe: I think that works.... Pin
ns28-Jan-03 9:50
ns28-Jan-03 9:50 
GeneralThe SDK in question.... Pin
ns28-Jan-03 10:47
ns28-Jan-03 10:47 
GeneralRe: The SDK in question.... Pin
Michael Dunn28-Jan-03 15:49
sitebuilderMichael Dunn28-Jan-03 15:49 
GeneralOpenDocumentFile Pin
Dov Sherman28-Jan-03 6:25
Dov Sherman28-Jan-03 6:25 
GeneralRe: OpenDocumentFile Pin
Roger Allen29-Jan-03 1:35
Roger Allen29-Jan-03 1:35 
GeneralRe: OpenDocumentFile Pin
Dov Sherman29-Jan-03 6:40
Dov Sherman29-Jan-03 6:40 
GeneralOnPaint( ) -- how do I Pin
john john mackey28-Jan-03 5:31
john john mackey28-Jan-03 5:31 
GeneralRe: OnPaint( ) -- how do I Pin
john john mackey28-Jan-03 6:20
john john mackey28-Jan-03 6:20 
QuestionIs it possible to insert a new line (\n) in a tool tip? Pin
Luis E. Cuadrado28-Jan-03 5:22
Luis E. Cuadrado28-Jan-03 5:22 
AnswerRe: Is it possible to insert a new line (\n) in a tool tip? Pin
will138328-Jan-03 5:29
will138328-Jan-03 5:29 
AnswerRe: Is it possible to insert a new line (\n) in a tool tip? Pin
PJ Arends28-Jan-03 7:39
professionalPJ Arends28-Jan-03 7:39 

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.