Click here to Skip to main content
15,909,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hash Look up Logic Pin
Alan Balkany1-Sep-09 5:32
Alan Balkany1-Sep-09 5:32 
Questionset dialog transparence but control not Pin
zhanghui543231-Aug-09 19:54
zhanghui543231-Aug-09 19:54 
QuestionOutlook Automation Pin
john563231-Aug-09 19:47
john563231-Aug-09 19:47 
AnswerRe: Outlook Automation Pin
Stuart Dootson31-Aug-09 23:13
professionalStuart Dootson31-Aug-09 23:13 
QuestionCan i send Array in command line parameter of CeCreateProcess? Pin
Le@rner31-Aug-09 19:19
Le@rner31-Aug-09 19:19 
AnswerNews: Nothing has changed today! Pin
Rajesh R Subramanian31-Aug-09 19:51
professionalRajesh R Subramanian31-Aug-09 19:51 
AnswerRe: Can i send Array in command line parameter of CeCreateProcess? Pin
Adam Roderick J31-Aug-09 19:58
Adam Roderick J31-Aug-09 19:58 
QuestionCFrameWnd and CToolBar and tooltips. Should be simple but.. [modified] Pin
FloatingMarc31-Aug-09 17:31
FloatingMarc31-Aug-09 17:31 
I have now been strugling since several days, but I can't get my tooltips to show. I have a CFrameWnd that I dynamically create, which contains a CToolBar for which I want tooltips to show up. Here is what I have so far:

CFrameWnd creation:
HINSTANCE aa=AfxGetInstanceHandle();
LPCTSTR theClass=AfxRegisterWndClass(CS_HREDRAW|CS_VREDRAW|CS_OWNDC|CS_DBLCLKS,0,0,LoadIcon(aa,MAKEINTRESOURCE(IDR_MY_ICON)));
MyCFrameWnd->Create(theClass,"MyAppName",WS_TABSTOP|WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN|WS_CLIPSIBLINGS);

CToolBar creation (in MyCFrameWnd):
EnableDocking(CBRS_ALIGN_TOP|CBRS_ALIGN_BOTTOM|CBRS_ALIGN_LEFT|CBRS_ALIGN_RIGHT);
MyCToolBar=new CToolBar();
MyCToolBar->CreateEx(this,TBSTYLE_FLAT,WS_CHILD|WS_VISIBLE|CBRS_SIZE_DYNAMIC|CBRS_TOP|WS_CLIPCHILDREN|WS_CLIPSIBLINGS|CBRS_TOOLTIPS);//|CBRS_FLYBY );
MyCToolBar->LoadToolBar(IDR_TOOLBAR);
MyCToolBar->SetWindowText("Navigation");
MyCToolBar->EnableDocking(CBRS_ALIGN_TOP|CBRS_ALIGN_BOTTOM);
MyCToolBar->SetButtons(toolbarStruct(containing command IDs),toolbarItemNb);
MyCToolBar->SetButtonStyle(MyCToolBar->CommandToIndex(TOOLBAR_CMD_1),TBBS_CHECKBOX);
... (similar for the other buttons as above line)
DockControlBar(CMyToolBar,AFX_IDW_DOCKBAR_TOP);


Then for every toolbar image in the toolbar editor, I added the tooltip text under "Prompt" (in the properties view). e.g. "hello world\nhello world"

Finally, my MyCFrameWnd has a custom message handler (WindowProc) and at the end of that routine I call:
return (CFrameWnd::WindowProc(uMsg,wParam,lParam));

When I look at messages that my toolbar generates/receives (using spy++), I cannot see any WM_NOTIFYFORMAT, WM_NOTIFY or WM_TIMER like other applications showing tooltips.

Does anyone have a small clue why my tooltips don't show?

modified on Monday, August 31, 2009 11:44 PM

QuestionSetLayeredWindowAttributes , set a dialog . Pin
zhanghui543231-Aug-09 16:15
zhanghui543231-Aug-09 16:15 
AnswerRe: SetLayeredWindowAttributes , set a dialog . Pin
«_Superman_»31-Aug-09 17:56
professional«_Superman_»31-Aug-09 17:56 
Questionfrom Font Name and Font Size ==> TextWidth and Textheight ?? Pin
aa_zz31-Aug-09 15:29
aa_zz31-Aug-09 15:29 
AnswerRe: from Font Name and Font Size ==> TextWidth and Textheight ?? Pin
«_Superman_»31-Aug-09 18:03
professional«_Superman_»31-Aug-09 18:03 
QuestionQuestion about RichEdit: the style of underline Pin
xp52431-Aug-09 3:45
xp52431-Aug-09 3:45 
AnswerRe: Question about RichEdit: the style of underline Pin
xp5241-Sep-09 15:45
xp5241-Sep-09 15:45 
QuestionSDI Application Pin
susanne131-Aug-09 3:07
susanne131-Aug-09 3:07 
AnswerRe: SDI Application Pin
«_Superman_»31-Aug-09 3:29
professional«_Superman_»31-Aug-09 3:29 
GeneralRe: SDI Application Pin
susanne131-Aug-09 3:41
susanne131-Aug-09 3:41 
GeneralRe: SDI Application Pin
«_Superman_»31-Aug-09 6:16
professional«_Superman_»31-Aug-09 6:16 
AnswerRe: SDI Application Pin
Cedric Moonen31-Aug-09 4:42
Cedric Moonen31-Aug-09 4:42 
QuestionRe: SDI Application Pin
Maximilien31-Aug-09 5:09
Maximilien31-Aug-09 5:09 
AnswerRe: SDI Application Pin
susanne131-Aug-09 23:41
susanne131-Aug-09 23:41 
AnswerRe: SDI Application Pin
Joe Woodbury31-Aug-09 9:25
professionalJoe Woodbury31-Aug-09 9:25 
QuestionRe: SDI Application Pin
David Crow31-Aug-09 16:12
David Crow31-Aug-09 16:12 
AnswerRe: SDI Application Pin
Adam Roderick J31-Aug-09 20:55
Adam Roderick J31-Aug-09 20:55 
AnswerRe: SDI Application Pin
Iain Clarke, Warrior Programmer1-Sep-09 1:25
Iain Clarke, Warrior Programmer1-Sep-09 1:25 

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.