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

C / C++ / MFC

 
GeneralRe: About the CWinThread object creation / deletion Pin
Sauro Viti20-Oct-10 23:07
professionalSauro Viti20-Oct-10 23:07 
GeneralRe: About the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 23:32
federico.strati20-Oct-10 23:32 
GeneralRe: About the CWinThread object creation / deletion Pin
Sauro Viti21-Oct-10 0:12
professionalSauro Viti21-Oct-10 0:12 
QuestionProject Integration Problem Pin
AmbiguousName20-Oct-10 22:32
AmbiguousName20-Oct-10 22:32 
AnswerRe: Project Integration Problem Pin
Cedric Moonen20-Oct-10 23:16
Cedric Moonen20-Oct-10 23:16 
QuestionHow can I give write access to a file to all users? [modified] Pin
sashoalm20-Oct-10 21:54
sashoalm20-Oct-10 21:54 
AnswerRe: How can I give write access to a file to all users? Pin
«_Superman_»20-Oct-10 22:59
professional«_Superman_»20-Oct-10 22:59 
QuestionC++ CStatusBar, Tool Tips and Dynamic PaneText Pin
ggoutam720-Oct-10 18:41
ggoutam720-Oct-10 18:41 
Hello,

I can create a Status Bar with initial Pane Text displayed on it. I can set the width of each pane and it can work.

The issues I am facing are :
1) The tool tips does not shows. How to display the tool tips?
2) How to set the delay time for the tool tips?
3) I can set the Pane Text and it shows. But, when I dynamically change the Pane Text from time to time, it raises error. How to dynamically change the Pane Text?


<br />
CStatusBar  m_wndStatusBar;<br />
<br />
static UINT indicators[] =<br />
{<br />
	ID_SEPARATOR,<br />
	ID_INDICATOR_REC,<br />
	ID_INDICATOR_CAPS,<br />
	ID_INDICATOR_NUM,<br />
	ID_INDICATOR_SCRL,<br />
};<br />
<br />
if (!m_wndStatusBar.CreateEx(this, SBT_TOOLTIPS) ||!m_wndStatusBar.SetIndicators(indicators,sizeof(indicators)/sizeof(UINT)))<br />
{<br />
		TRACE0("Failed to create status bar\n");<br />
		return -1;      // fail to create<br />
}<br />
<br />
RepositionBars(AFX_IDW_CONTROLBAR_FIRST, AFX_IDW_CONTROLBAR_LAST, 0); // Not sure need this line or not. Appreciate your comments on this.<br />
<br />
m_wndStatusBar.SetPaneText (0, _T("Ready"), 1);  // First time it's fine. Second time it raises error<br />
m_wndStatusBar.GetStatusBarCtrl().SetTipText(0, _T("Application status"));  //Not coming out<br />
m_wndStatusBar.SetPaneInfo (0, 1, 1, 280);<br />



Your guidance on solving this problem is very much appreciated.

Thanks,
Goutam
AnswerRe: C++ CStatusBar, Tool Tips and Dynamic PaneText Pin
«_Superman_»20-Oct-10 19:09
professional«_Superman_»20-Oct-10 19:09 
QuestionHow to use my defined resource ID in a DLL? [modified] Pin
questionmm20-Oct-10 13:11
questionmm20-Oct-10 13:11 
QuestionRead-Only ComboBox Pin
Fareed Rizkalla20-Oct-10 12:24
Fareed Rizkalla20-Oct-10 12:24 
AnswerRe: Read-Only ComboBox PinPopular
Peter_in_278020-Oct-10 13:46
professionalPeter_in_278020-Oct-10 13:46 
AnswerRe: Read-Only ComboBox Pin
Sauro Viti20-Oct-10 21:18
professionalSauro Viti20-Oct-10 21:18 
QuestionHow can I know if scrollbar appears ? Pin
mesajflaviu20-Oct-10 1:42
mesajflaviu20-Oct-10 1:42 
AnswerRe: How can I know if scrollbar appears ? Pin
Chris Meech20-Oct-10 3:23
Chris Meech20-Oct-10 3:23 
GeneralRe: How can I know if scrollbar appears ? Pin
mesajflaviu20-Oct-10 20:20
mesajflaviu20-Oct-10 20:20 
GeneralRe: How can I know if scrollbar appears ? Pin
Richard MacCutchan20-Oct-10 22:03
mveRichard MacCutchan20-Oct-10 22:03 
GeneralRe: How can I know if scrollbar appears ? Pin
mesajflaviu21-Oct-10 2:05
mesajflaviu21-Oct-10 2:05 
AnswerRe: How can I know if scrollbar appears ? Pin
Code-o-mat20-Oct-10 4:38
Code-o-mat20-Oct-10 4:38 
GeneralRe: How can I know if scrollbar appears ? Pin
mesajflaviu20-Oct-10 20:22
mesajflaviu20-Oct-10 20:22 
GeneralRe: How can I know if scrollbar appears ? Pin
Code-o-mat20-Oct-10 21:54
Code-o-mat20-Oct-10 21:54 
GeneralRe: How can I know if scrollbar appears ? Pin
mesajflaviu21-Oct-10 22:38
mesajflaviu21-Oct-10 22:38 
GeneralRe: How can I know if scrollbar appears ? Pin
Code-o-mat21-Oct-10 22:43
Code-o-mat21-Oct-10 22:43 
Questionproblem with float assignment Pin
samosato20-Oct-10 1:18
samosato20-Oct-10 1:18 
AnswerRe: problem with float assignment Pin
bleedingfingers20-Oct-10 1:23
bleedingfingers20-Oct-10 1:23 

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.