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

C / C++ / MFC

 
AnswerRe: protected constructor Pin
Stuart Dootson28-Feb-09 22:31
professionalStuart Dootson28-Feb-09 22:31 
GeneralRe: protected constructor Pin
samira forooghi28-Feb-09 22:38
samira forooghi28-Feb-09 22:38 
Question[Message Deleted] Pin
Subhash Madhukar28-Feb-09 20:19
Subhash Madhukar28-Feb-09 20:19 
AnswerIf you want to be rescued. Pin
Eytukan28-Feb-09 21:20
Eytukan28-Feb-09 21:20 
AnswerRe: please help me !!!!! rescue me Pin
Code-o-mat28-Feb-09 22:42
Code-o-mat28-Feb-09 22:42 
QuestionHow to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
lyo28-Feb-09 17:12
lyo28-Feb-09 17:12 
AnswerRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
Hamid_RT28-Feb-09 19:25
Hamid_RT28-Feb-09 19:25 
QuestionRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
lyo28-Feb-09 20:54
lyo28-Feb-09 20:54 
AnswerRe: How to use "PrintWindow" functin in windows2000 and VC6.0 ? Pin
«_Superman_»28-Feb-09 21:17
professional«_Superman_»28-Feb-09 21:17 
QuestionEAXDirectSoundCreate method hangs, Pin
haku10028-Feb-09 16:54
haku10028-Feb-09 16:54 
Questionvisual c++ Pin
sunnyk8628-Feb-09 8:36
sunnyk8628-Feb-09 8:36 
AnswerRe: visual c++ Pin
CPallini28-Feb-09 10:27
mveCPallini28-Feb-09 10:27 
GeneralRe: visual c++ Pin
Hamid_RT28-Feb-09 19:32
Hamid_RT28-Feb-09 19:32 
JokeRe: visual c++ Pin
CPallini28-Feb-09 23:31
mveCPallini28-Feb-09 23:31 
GeneralRe: visual c++ Pin
Eytukan28-Feb-09 23:58
Eytukan28-Feb-09 23:58 
QuestionRe: visual c++ Pin
CPallini1-Mar-09 2:35
mveCPallini1-Mar-09 2:35 
AnswerRe: visual c++ Pin
Eytukan1-Mar-09 2:43
Eytukan1-Mar-09 2:43 
GeneralRe: visual c++ Pin
Hamid_RT1-Mar-09 4:28
Hamid_RT1-Mar-09 4:28 
GeneralRe: visual c++ Pin
Eytukan1-Mar-09 6:33
Eytukan1-Mar-09 6:33 
GeneralRe: visual c++ Pin
Hamid_RT1-Mar-09 4:28
Hamid_RT1-Mar-09 4:28 
AnswerRe: visual c++ Pin
Jonathan Davies28-Feb-09 12:54
Jonathan Davies28-Feb-09 12:54 
QuestionFlashing Toolbar Buttons Pin
softwaremonkey28-Feb-09 7:41
softwaremonkey28-Feb-09 7:41 
AnswerRe: Flashing Toolbar Buttons Pin
Code-o-mat28-Feb-09 7:51
Code-o-mat28-Feb-09 7:51 
GeneralRe: Flashing Toolbar Buttons Pin
softwaremonkey1-Mar-09 6:16
softwaremonkey1-Mar-09 6:16 
Hi,

Thanks for the suggestion. I tried it and it looked OK but still not quite what I wanted. For info, I did manage to get the look I was after but I dont know if its the "correct" way to do it. I created two versions of the toolbar bitmap each showing the two states I needed. I loaded them into two image lists in CMainFrame::OnCreate(). I then swapped the image list into the toolbar on a timer, like this...

CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
...
	m_il1.Create(IDR_MAINFRAME1, 32, 0,RGB(128,128,128)); // Load the two toolbar bitmaps
	m_il2.Create(IDR_MAINFRAME2, 32, 0,RGB(128,128,128)); 
...
}

CMainFrame::FlashToolbarButton()
{
// Called from a windows timer
	static bool bSwap = true;
	if(bSwap)
	{
		m_wndToolBar.GetToolBarCtrl().SetImageList(&m_il1);
		bSwap = FALSE;
	}
	else
	{
		m_wndToolBar.GetToolBarCtrl().SetImageList(&m_il2);
		bSwap = TRUE;
	}
	m_wndToolBar.Invalidate(); // Needed to redraw the toolbar
}


Probably very ugly - maybe someone else has a more elegant solution. Smile | :)
GeneralRe: Flashing Toolbar Buttons Pin
Code-o-mat1-Mar-09 6:57
Code-o-mat1-Mar-09 6:57 

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.