Click here to Skip to main content
15,898,374 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCan i assign an entire string to lParam? Pin
redeemer15-May-02 8:37
redeemer15-May-02 8:37 
Generalwinsock servers ... console apps... Pin
l a u r e n15-May-02 7:30
l a u r e n15-May-02 7:30 
GeneralRe: winsock servers ... console apps... Pin
Paul M Watt15-May-02 8:02
mentorPaul M Watt15-May-02 8:02 
GeneralRe: winsock servers ... console apps... Pin
Anders Molin15-May-02 8:03
professionalAnders Molin15-May-02 8:03 
GeneralRe: winsock servers ... console apps... Pin
Nemanja Trifunovic15-May-02 8:17
Nemanja Trifunovic15-May-02 8:17 
GeneralRe: winsock servers ... console apps... Pin
Amit Dey15-May-02 10:19
Amit Dey15-May-02 10:19 
Generalpopup menu font sizing Pin
jimNLX15-May-02 7:10
jimNLX15-May-02 7:10 
GeneralRe: popup menu font sizing Pin
Paul M Watt15-May-02 8:12
mentorPaul M Watt15-May-02 8:12 
The font of the menu is determined by the system settings, and the actual menu window is as system window, so there is no way to simply set the font of a menu short of changing the systems settings.

Therefore you will have to create an owner drawn menu in order to get the font to appear the way that you want.

Another possible way to do this is to create bitmaps at runtime when your dialog is created that contian the font and the size of the menu that you want, and assign these bitmaps to the menu. That way you only need to do a little bit of setup work when you window is created rather than getting into the messy owner drawn menus. I think this would be the easiest solution, and there is an example in Charles Petzolds Programming Windows book.

Good Luck!


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralOnly if WTL had AfxGetMainWnd Pin
Mike.NET15-May-02 7:13
Mike.NET15-May-02 7:13 
GeneralRe: Only if WTL had AfxGetMainWnd Pin
Paul M Watt15-May-02 7:47
mentorPaul M Watt15-May-02 7:47 
GeneralDisplaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Dean Michaud15-May-02 6:34
Dean Michaud15-May-02 6:34 
GeneralRe: Displaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Paul M Watt15-May-02 7:05
mentorPaul M Watt15-May-02 7:05 
GeneralRe: Displaying Context Sensitive Help Button Without Displaying The Cancel Button in the System Menu Pin
Dean Michaud15-May-02 7:22
Dean Michaud15-May-02 7:22 
Generalwebbrowser control question Pin
Jason Henderson15-May-02 6:30
Jason Henderson15-May-02 6:30 
GeneralRe: webbrowser control question Pin
Paul M Watt15-May-02 7:19
mentorPaul M Watt15-May-02 7:19 
GeneralPassing PVOID through VARIANT Pin
Hans Ruck15-May-02 6:25
Hans Ruck15-May-02 6:25 
GeneralRe: Passing PVOID through VARIANT Pin
Chris Losinger15-May-02 11:48
professionalChris Losinger15-May-02 11:48 
GeneralProgram only runs within IDE Pin
David Chamberlain15-May-02 6:11
David Chamberlain15-May-02 6:11 
GeneralRe: Program only runs within IDE Pin
Paul M Watt15-May-02 6:18
mentorPaul M Watt15-May-02 6:18 
GeneralRe: Program only runs within IDE Pin
David Chamberlain15-May-02 6:51
David Chamberlain15-May-02 6:51 
GeneralRe: Program only runs within IDE Pin
David Chamberlain15-May-02 7:02
David Chamberlain15-May-02 7:02 
GeneralRe: Program only runs within IDE Pin
Navin15-May-02 6:39
Navin15-May-02 6:39 
GeneralRe: Program only runs within IDE Pin
David Chamberlain15-May-02 6:53
David Chamberlain15-May-02 6:53 
GeneralMaking my own file dialog Pin
Nnamdi Onyeyiri15-May-02 6:03
Nnamdi Onyeyiri15-May-02 6:03 
GeneralRe: Making my own file dialog Pin
Paul M Watt15-May-02 6:13
mentorPaul M Watt15-May-02 6:13 

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.