Click here to Skip to main content
15,915,702 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: changing what a pushbutton looks like Pin
Christian Graus17-Aug-05 11:39
protectorChristian Graus17-Aug-05 11:39 
GeneralRe: changing what a pushbutton looks like Pin
Tim Zorn20-Aug-05 12:28
Tim Zorn20-Aug-05 12:28 
GeneralRe: changing what a pushbutton looks like Pin
normanS16-Aug-05 21:32
normanS16-Aug-05 21:32 
GeneralRe: changing what a pushbutton looks like Pin
Tim Zorn20-Aug-05 8:41
Tim Zorn20-Aug-05 8:41 
GeneralRe: changing what a pushbutton looks like Pin
normanS21-Aug-05 19:27
normanS21-Aug-05 19:27 
GeneralRe: changing what a pushbutton looks like Pin
normanS22-Aug-05 5:37
normanS22-Aug-05 5:37 
GeneralRe: changing what a pushbutton looks like Pin
Tim Zorn22-Aug-05 5:42
Tim Zorn22-Aug-05 5:42 
Generaltoolbar Pin
Max Santos16-Aug-05 12:59
Max Santos16-Aug-05 12:59 
hello people

I would like to ask for help for the next problem:
(please take a look a this image) http://xwega.com/images/menu.jpg[^]

the problem is this:
the menu bar has the same code base as the Toolbar, in fact the menubar is a toolbar with the TBSTYLE_LIST style.

the toolbar works great but the menubar as some problems sending the TBN_HOTITEMCHANGE notification.

the menu bar is loadded like this:
m_Menu.LoadMenu(nResource);<br />
<br />
	SetButtons(NULL,m_Menu.GetMenuItemCount());<br />
<br />
	for(UINT i=0 ; i<m_Menu.GetMenuItemCount() ; i++)<br />
	{<br />
		CString menuText;<br />
		m_Menu.GetMenuString(i,menuText,MF_BYPOSITION);<br />
		GetToolBarCtrl().AddStrings(menuText);<br />
        <br />
		SetButtonText(i,menuText);<br />
		SetButtonInfo(i,i,TBSTYLE_FLAT | TBSTYLE_BUTTON | TBSTYLE_AUTOSIZE | TBBS_NOPREFIX,0);<br />
	}


top menu item dont have an ID so place the variable "i" as the ID of the buttons,
and this is the problem

this way the notification is not sent and i do not know when the mouse leave the menubar

however , if the ID is set as -1 it works great but then i have now way of knowing in what button the mouse stands.

any ideias?


thanks
QuestionGDI+ How to get path from a region? Pin
mpastchenko16-Aug-05 12:29
mpastchenko16-Aug-05 12:29 
AnswerRe: GDI+ How to get path from a region? Pin
mpastchenko17-Aug-05 7:21
mpastchenko17-Aug-05 7:21 
GeneralGetShortPathName() doesn't Pin
dandy7216-Aug-05 11:55
dandy7216-Aug-05 11:55 
GeneralRe: GetShortPathName() doesn't Pin
David Crow16-Aug-05 12:25
David Crow16-Aug-05 12:25 
GeneralRe: GetShortPathName() doesn't Pin
dandy7217-Aug-05 2:48
dandy7217-Aug-05 2:48 
GeneralRe: GetShortPathName() doesn't Pin
David Crow17-Aug-05 3:34
David Crow17-Aug-05 3:34 
GeneralRe: GetShortPathName() doesn't Pin
dandy7217-Aug-05 6:11
dandy7217-Aug-05 6:11 
GeneralRe: GetShortPathName() doesn't Pin
Graham Bradshaw16-Aug-05 12:41
Graham Bradshaw16-Aug-05 12:41 
GeneralCPU Intensive App Pin
LighthouseJ16-Aug-05 11:52
LighthouseJ16-Aug-05 11:52 
GeneralRe: CPU Intensive App Pin
David Crow16-Aug-05 12:26
David Crow16-Aug-05 12:26 
GeneralRe: CPU Intensive App Pin
LighthouseJ16-Aug-05 12:39
LighthouseJ16-Aug-05 12:39 
GeneralRe: CPU Intensive App Pin
Max Santos16-Aug-05 13:09
Max Santos16-Aug-05 13:09 
GeneralRe: CPU Intensive App Pin
LighthouseJ16-Aug-05 13:57
LighthouseJ16-Aug-05 13:57 
GeneralRe: CPU Intensive App Pin
pablo_mag16-Aug-05 13:59
pablo_mag16-Aug-05 13:59 
GeneralRe: CPU Intensive App Pin
LighthouseJ16-Aug-05 14:06
LighthouseJ16-Aug-05 14:06 
GeneralRe: CPU Intensive App Pin
David Crow17-Aug-05 2:28
David Crow17-Aug-05 2:28 
GeneralRe: CPU Intensive App Pin
Blake Miller17-Aug-05 4:29
Blake Miller17-Aug-05 4:29 

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.