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

ATL / WTL / STL

 
QuestionRe: Convert CString to BSTR Pin
CPallini10-Jan-08 21:59
mveCPallini10-Jan-08 21:59 
GeneralRe: Convert CString to BSTR Pin
mandanani10-Jan-08 23:17
mandanani10-Jan-08 23:17 
GeneralRe: Convert CString to BSTR Pin
Lim Bio Liong12-Jan-08 3:23
Lim Bio Liong12-Jan-08 3:23 
GeneralRe: Convert CString to BSTR Pin
ShilpiP24-Jan-08 21:08
ShilpiP24-Jan-08 21:08 
GeneralRe: Convert CString to BSTR Pin
ThatsAlok26-Feb-08 22:00
ThatsAlok26-Feb-08 22:00 
QuestionProblem with element event handling of WebBrowser Control Pin
javan10-Jan-08 16:28
javan10-Jan-08 16:28 
GeneralWTL Dialog repaint problem with Vista Pin
mirano10-Jan-08 7:55
mirano10-Jan-08 7:55 
GeneralWTL Menu problem Pin
damir_tk10-Jan-08 7:07
damir_tk10-Jan-08 7:07 
Hi everybody,

I have a problem with a menu on a regular dialog. I want to change the text of the menu item in run-time, so I do this:

ModifyMenu( GetMenu(), 0, MF_STRING | MF_BYPOSITION, 0, (LPCTSTR) _T( "View" ) );

This works if the menu is submenu and I am changing the items there, but if I want to change the root menu (the one that sits on the menu bar and does not have an ID), then it changes but it does not display any changes until I move the mouse over it, so I guess it does not refreshes immediatelly.
Or maybe there is a whole better way to change the text of the menu items at runtime?
I went through Michael Dunn's articles, but only have seen the examples of toolbar and statusbar, with UISetText, but this does not work in my case.

Thanks for your help in advance.
GeneralRe: WTL Menu problem Pin
Michael Dunn11-Jan-08 8:17
sitebuilderMichael Dunn11-Jan-08 8:17 
GeneralRe: WTL Menu problem Pin
damir_tk11-Jan-08 9:47
damir_tk11-Jan-08 9:47 
GeneralRe: WTL Menu problem Pin
damir_tk13-Jan-08 14:09
damir_tk13-Jan-08 14:09 
QuestionHow to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 16:51
mandanani8-Jan-08 16:51 
AnswerRe: How to access member functions of coclass from its Interface Pin
mandanani8-Jan-08 20:41
mandanani8-Jan-08 20:41 
GeneralRe: How to access member functions of coclass from its Interface Pin
Nathan Holt at EMOM9-Jan-08 10:02
Nathan Holt at EMOM9-Jan-08 10:02 
GeneralCOM object and global pointers [modified] Pin
Monty27-Jan-08 21:54
Monty27-Jan-08 21:54 
GeneralRe: COM object and global pointers Pin
led mike8-Jan-08 5:04
led mike8-Jan-08 5:04 
GeneralOleDb, IRowsetIndex Pin
ArielR7-Jan-08 3:38
ArielR7-Jan-08 3:38 
GeneralStatic controls transparency problem Pin
mirano6-Jan-08 10:19
mirano6-Jan-08 10:19 
GeneralRe: Static controls transparency problem Pin
Michael Dunn6-Jan-08 11:05
sitebuilderMichael Dunn6-Jan-08 11:05 
GeneralRe: Static controls transparency problem Pin
mirano6-Jan-08 11:52
mirano6-Jan-08 11:52 
GeneralRe: Static controls transparency problem [modified] Pin
Michael Dunn6-Jan-08 12:09
sitebuilderMichael Dunn6-Jan-08 12:09 
GeneralRe: Static controls transparency problem Pin
mirano7-Jan-08 0:34
mirano7-Jan-08 0:34 
GeneralMSMQ Pin
shakumar_221-Jan-08 22:27
shakumar_221-Jan-08 22:27 
QuestionCInternetSession Assertion Failure Pin
İsmail Durmaz22-Dec-07 7:30
İsmail Durmaz22-Dec-07 7:30 
GeneralNamespace ATL Pin
Ju@ncho19-Dec-07 7:00
Ju@ncho19-Dec-07 7:00 

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.