Click here to Skip to main content
15,921,697 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: getting pixel color values by GetDiBit function Pin
GAJERA21-Oct-10 2:57
GAJERA21-Oct-10 2:57 
QuestionOverlap A Bitmap using DeviceContext Pin
002comp21-Oct-10 0:38
002comp21-Oct-10 0:38 
AnswerRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 1:05
GAJERA21-Oct-10 1:05 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
Sauro Viti21-Oct-10 1:11
professionalSauro Viti21-Oct-10 1:11 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 1:18
GAJERA21-Oct-10 1:18 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
002comp21-Oct-10 18:46
002comp21-Oct-10 18:46 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA21-Oct-10 21:33
GAJERA21-Oct-10 21:33 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
002comp22-Oct-10 1:22
002comp22-Oct-10 1:22 
GeneralRe: Overlap A Bitmap using DeviceContext Pin
GAJERA22-Oct-10 4:26
GAJERA22-Oct-10 4:26 
QuestionAbout the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 22:38
federico.strati20-Oct-10 22:38 
AnswerRe: About the CWinThread object creation / deletion Pin
Sauro Viti20-Oct-10 22:44
professionalSauro Viti20-Oct-10 22:44 
GeneralRe: About the CWinThread object creation / deletion Pin
federico.strati20-Oct-10 22:52
federico.strati20-Oct-10 22:52 
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 

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.