Click here to Skip to main content
15,887,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: char array contains #define directive Pin
nikhil_864-Nov-09 10:41
nikhil_864-Nov-09 10:41 
GeneralRe: char array contains #define directive Pin
David Crow4-Nov-09 10:43
David Crow4-Nov-09 10:43 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 11:01
mveCPallini4-Nov-09 11:01 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 10:47
mveCPallini4-Nov-09 10:47 
QuestionRe: char array contains #define directive Pin
CPallini4-Nov-09 9:52
mveCPallini4-Nov-09 9:52 
AnswerRe: char array contains #define directive Pin
includeh104-Nov-09 9:54
includeh104-Nov-09 9:54 
GeneralRe: char array contains #define directive Pin
CPallini4-Nov-09 10:59
mveCPallini4-Nov-09 10:59 
QuestionCStatusBar & Tool Tips Pin
BarryPearlman4-Nov-09 8:19
BarryPearlman4-Nov-09 8:19 
I have a 3 pane StatusBar created in class CJBK_III_SBarCls as defined in the header file as:

CJBK_III_SBarCls : public CWnd
{
CStatusBar m_CJBK_III_SBar;

............... Stuff ..............

In CJBK_III_SBarCls.cpp:
}
int CJBK_III_SBarCls::OnCreate(LPCREATESTRUCT lp_CS)
{
#define SB_STYLE_EX = WS_EX_STATICEDGE | SBARS_SIZEGRIP | SBT_TOOLTIPS | SBT_OWNERDRAW
#define SB_STYLE WS_CHILD | WS_VISIBLE | CBRS_BOTTOM

m_CJBK_III_SBar.CreateEx(m_pCJBK_III_MF, SB_STYLE_EX, SB_STYLE, ID_OBJ_SB_CLS);

............... Stuff ..............
}

This seems to work fine, including putting text and bitmaps on or into the panes. I further wish to be able to have tool tips for each pane.
If I do this in CJBK_III_SBarCls.cpp:

m_CJBK_III_SBar.GetStatusBarCtrl().SetTipText(0, _T("This is Pane 0"));
m_CJBK_III_SBar.GetStatusBarCtrl().SetTipText(1, _T("This is Pane 1"));
m_CJBK_III_SBar.GetStatusBarCtrl().SetTipText(2, _T("This is Pane 2"));

Everything compiles, links and visually displays OK. Putting the mouse over any of the panes however, does nothing.

1. What am I missing?
2. Do I hve to create a CToolTipCtrl within the class?
3. If I don't have to create a CToolTipCtrl, how does one set things like text colors, delay times, .Activate etc.?

I am trying to follow "ms-help://MS.VSCC.v90/MS.MSDNQTR.v90.en/dv_vclib/html/7505a1f3-0c37-4cb1-b30b-af83f75bdf91.htm" in the help files.

A link to an example or simple example would be quite helpful.

Thanks,

Barry
Question[Message Deleted] Pin
iMikki4-Nov-09 7:57
iMikki4-Nov-09 7:57 
AnswerRe: Creating variables with a variable in its name Pin
Maximilien4-Nov-09 8:18
Maximilien4-Nov-09 8:18 
AnswerRe: Creating variables with a variable in its name Pin
«_Superman_»4-Nov-09 8:30
professional«_Superman_»4-Nov-09 8:30 
GeneralRe: Creating variables with a variable in its name Pin
iMikki4-Nov-09 8:49
iMikki4-Nov-09 8:49 
GeneralRe: Creating variables with a variable in its name Pin
Chris Losinger4-Nov-09 9:03
professionalChris Losinger4-Nov-09 9:03 
QuestionCards.dll question Pin
David Crow4-Nov-09 6:06
David Crow4-Nov-09 6:06 
AnswerRe: Cards.dll question Pin
«_Superman_»4-Nov-09 6:57
professional«_Superman_»4-Nov-09 6:57 
AnswerRe: Cards.dll question Pin
Mark Salsbery4-Nov-09 7:11
Mark Salsbery4-Nov-09 7:11 
AnswerRe: Cards.dll question Pin
CPallini4-Nov-09 7:27
mveCPallini4-Nov-09 7:27 
AnswerRe: Cards.dll question Pin
Richard MacCutchan5-Nov-09 2:21
mveRichard MacCutchan5-Nov-09 2:21 
GeneralRe: Cards.dll question Pin
David Crow5-Nov-09 2:25
David Crow5-Nov-09 2:25 
Questionbuffer overrun Pin
nuttynibbles4-Nov-09 4:18
nuttynibbles4-Nov-09 4:18 
AnswerRe: buffer overrun Pin
David Crow4-Nov-09 4:30
David Crow4-Nov-09 4:30 
GeneralRe: buffer overrun Pin
Richard MacCutchan4-Nov-09 4:57
mveRichard MacCutchan4-Nov-09 4:57 
General[OT] Re: buffer overrun Pin
David Crow4-Nov-09 5:39
David Crow4-Nov-09 5:39 
GeneralRe: [OT] Re: buffer overrun Pin
Richard MacCutchan4-Nov-09 6:36
mveRichard MacCutchan4-Nov-09 6:36 
GeneralRe: [OT] Re: buffer overrun [modified] Pin
nuttynibbles4-Nov-09 11:14
nuttynibbles4-Nov-09 11:14 

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.