Click here to Skip to main content
16,005,121 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralBitmap with scrolling capability Pin
Shibu14-Aug-02 20:37
Shibu14-Aug-02 20:37 
GeneralRe: Bitmap with scrolling capability Pin
Tomasz Sowinski14-Aug-02 23:46
Tomasz Sowinski14-Aug-02 23:46 
GeneralAttributes and MFC Pin
paulb14-Aug-02 18:52
paulb14-Aug-02 18:52 
GeneralDialog windows Pin
Jason Hooper14-Aug-02 18:48
Jason Hooper14-Aug-02 18:48 
GeneralRe: Dialog windows Pin
DanielO15-Aug-02 0:37
DanielO15-Aug-02 0:37 
QuestionShow popup menu not animated? Pin
Anonymous14-Aug-02 18:37
Anonymous14-Aug-02 18:37 
AnswerRe: Show popup menu not animated? Pin
Roman Fadeyev14-Aug-02 19:20
Roman Fadeyev14-Aug-02 19:20 
GeneralRe: Show popup menu not animated? Pin
Anonymous14-Aug-02 19:23
Anonymous14-Aug-02 19:23 
Roman Fadeyev wrote:
1) I think you can't. There is only one way to solve this problem - switch "menu effects" options off in Windows Settings. Of course, you can paint menu manually, but is it worthy of that efforts?

I used BCMenu class, but any other ownerdraw menu works too. I need to figure out what makes it non sliding here on WIn9x, but at least it works.
void CBCDialogMenuDlg::OnButtonMenu() 
{
	BCMenu menu;						//create menu with bitmaps
	menu.LoadMenu(IDR_MYTYPE);
	BCMenu* pPopupMenu = (BCMenu*) menu.GetSubMenu(0);
	ASSERT(pPopupMenu != NULL);

    CRect rect;
	m_away.GetWindowRect(rect);

//	pPopupMenu->LoadToolbar(IDR_TOOLBAR_PROPERTY);	//load bitmaps for menu
	pPopupMenu->TrackPopupMenu(TPM_LEFTALIGN | TPM_RIGHTBUTTON, rect.left, rect.top, this);
}


Roman Fadeyev wrote:
2) Point is that Windows can place popup menus in different directions relative to point that you indicated to menu. It depends how close this menu is to bounds of screen. If you will adjust menu position manually, it may result a bug in some particular case

good point. I'll make sure my window is big enough to hold the menu over the button.
GeneralRe: Show popup menu not animated? Pin
Roman Fadeyev14-Aug-02 19:39
Roman Fadeyev14-Aug-02 19:39 
GeneralRe: Show popup menu not animated? Pin
Anonymous14-Aug-02 20:45
Anonymous14-Aug-02 20:45 
AnswerRe: Show popup menu not animated? Pin
Anonymous14-Aug-02 19:18
Anonymous14-Aug-02 19:18 
AnswerRe: Show popup menu not animated? Pin
Michael Dunn14-Aug-02 19:43
sitebuilderMichael Dunn14-Aug-02 19:43 
GeneralRe: Show popup menu not animated? Pin
Roman Fadeyev14-Aug-02 19:25
Roman Fadeyev14-Aug-02 19:25 
GeneralRe: Show popup menu not animated? Pin
Anonymous14-Aug-02 19:53
Anonymous14-Aug-02 19:53 
GeneralRe: Show popup menu not animated? Pin
Roman Fadeyev14-Aug-02 19:58
Roman Fadeyev14-Aug-02 19:58 
GeneralRe: Show popup menu not animated? (resume) Pin
Anonymous14-Aug-02 21:09
Anonymous14-Aug-02 21:09 
GeneralChange the text of the tooltip Pin
Eugene Pustovoyt14-Aug-02 18:11
Eugene Pustovoyt14-Aug-02 18:11 
GeneralRe: Change the text of the tooltip Pin
Tomasz Sowinski14-Aug-02 23:27
Tomasz Sowinski14-Aug-02 23:27 
GeneralRe: Change the text of the tooltip Pin
Eugene Pustovoyt15-Aug-02 7:42
Eugene Pustovoyt15-Aug-02 7:42 
GeneralRe: Change the text of the tooltip Pin
Tomasz Sowinski15-Aug-02 7:50
Tomasz Sowinski15-Aug-02 7:50 
GeneralRe: Change the text of the tooltip Pin
Eugene Pustovoyt15-Aug-02 18:31
Eugene Pustovoyt15-Aug-02 18:31 
GeneralRe: Change the text of the tooltip Pin
Tomasz Sowinski16-Aug-02 4:55
Tomasz Sowinski16-Aug-02 4:55 
GeneralRe: Change the text of the tooltip Pin
Eugene Pustovoyt16-Aug-02 5:43
Eugene Pustovoyt16-Aug-02 5:43 
Generaleasy for someone... Pin
Shotgun14-Aug-02 15:12
Shotgun14-Aug-02 15:12 
GeneralRe: easy for someone... Pin
Mike Nordell14-Aug-02 16:55
Mike Nordell14-Aug-02 16:55 

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.