Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:44
professionalJoan M5-Feb-03 4:44 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:46
-=jarl=-5-Feb-03 4:46 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:48
-=jarl=-5-Feb-03 4:48 
AnswerRe: using template functions as part of a class? is it possible? Pin
Joaquín M López Muñoz5-Feb-03 8:14
Joaquín M López Muñoz5-Feb-03 8:14 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 4:44
professionalJoan M5-Feb-03 4:44 
GeneralRe: using template functions as part of a class? is it possible? Pin
Joan M5-Feb-03 20:27
professionalJoan M5-Feb-03 20:27 
GeneralRe: using template functions as part of a class? is it possible? Pin
-=jarl=-5-Feb-03 4:57
-=jarl=-5-Feb-03 4:57 
Generalnew panel in statusbar is tiny! Pin
ns5-Feb-03 4:03
ns5-Feb-03 4:03 
I did: this is from an example I found. Now in my old project it shows up as a decent sized panewl, but in this one is tiny! I dont recall what I did specially to make the panel wider before....I have the same code in that project but theres got to be something else I did ....but what? Helllpppp!

int CPaletteStatusBar::OnCreate(LPCREATESTRUCT lpCreateStruct) 
{
	if (CStatusBar::OnCreate(lpCreateStruct) == -1)
		return -1;
	CRect rect(0,0,0,0);

	m_THBImageRainbow.Create("Rainbow", WS_CHILD, rect, this, IDC_THBIMAGERAINBOW);
	return 0;
}

void CPaletteStatusBar::OnSize(UINT nType, int cx, int cy) 
{
	CStatusBar::OnSize(nType, cx, cy);
	
	// TODO: Add your message handler code here

	UINT inx;

	CRect rect;

	inx = CommandToIndex (ID_INDICATOR_RAINBOW);

	GetItemRect(inx, &rect);

	m_THBImageRainbow.MoveWindow(rect);

	m_THBImageRainbow.ShowWindow(SW_SHOW);
}


Appreciate your help,
ns
Generaladditional bit of info Pin
ns5-Feb-03 4:11
ns5-Feb-03 4:11 
GeneralRe: new panel in statusbar is tiny! Pin
Maximilien5-Feb-03 4:19
Maximilien5-Feb-03 4:19 
GeneralA big thank you!! Pin
ns5-Feb-03 4:23
ns5-Feb-03 4:23 
QuestionProblems with Class Wizard? Pin
aslm5-Feb-03 3:53
aslm5-Feb-03 3:53 
AnswerRe: Problems with Class Wizard? Pin
Joan M5-Feb-03 4:14
professionalJoan M5-Feb-03 4:14 
GeneralRe: Problems with Class Wizard? Pin
Harold Bamford6-Feb-03 9:39
Harold Bamford6-Feb-03 9:39 
Generalcapturing keypressing events when focus is on different window Pin
sulaxan5-Feb-03 3:12
sulaxan5-Feb-03 3:12 
GeneralRe: capturing keypressing events when focus is on different window Pin
Jeremy Falcon5-Feb-03 3:39
professionalJeremy Falcon5-Feb-03 3:39 
GeneralRe: capturing keypressing events when focus is on different window Pin
Jeremy Falcon5-Feb-03 3:41
professionalJeremy Falcon5-Feb-03 3:41 
GeneralExecuting Remote Commands on an FTP Server Pin
Alexinuk5-Feb-03 2:05
Alexinuk5-Feb-03 2:05 
GeneralUse MSDN Pin
AlexO5-Feb-03 2:40
AlexO5-Feb-03 2:40 
GeneralRe: Use MSDN Pin
Alexinuk5-Feb-03 2:49
Alexinuk5-Feb-03 2:49 
GeneralRe: Use MSDN Pin
AlexO5-Feb-03 2:57
AlexO5-Feb-03 2:57 
GeneralRe: Use MSDN Pin
Alexinuk5-Feb-03 3:02
Alexinuk5-Feb-03 3:02 
GeneralUse MSDN Pin
AlexO5-Feb-03 3:17
AlexO5-Feb-03 3:17 
GeneralRe: Use MSDN Pin
Alexinuk5-Feb-03 3:20
Alexinuk5-Feb-03 3:20 
GeneralRe: Use MSDN Pin
AlexO5-Feb-03 3:46
AlexO5-Feb-03 3:46 

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.