Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

Changing Button text in a Button in IDR_MAINFRAME

$
0
0

Hi all!

I need at runtime to change the text of the first button of the Menu Bar of IDR_MAINFRAME,normally, the "File" Button.

I tried in OnCreate() of CMainFrame, m_wndMenuBar->SetText(0, _T("MyButton")), but texto won´t change.

What is missing?

Thanks,

Jorge


Jorge Teixeira


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>