Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Controls
  New Posts New Posts RSS Feed - Click Mouse RButtonDown  Menu
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Click Mouse RButtonDown Menu

 Post Reply Post Reply
Author
Message
skyliou View Drop Down
Newbie
Newbie
Avatar

Joined: 27 August 2009
Location: Taiwan
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote skyliou Quote  Post ReplyReply Direct Link To This Post Topic: Click Mouse RButtonDown Menu
    Posted: 22 September 2009 at 1:04pm

Hi Oleg,

i want to add a bitmap icon to mouse right button down Cmenu (office2007 style)

do you have any idea or sample ? (not replace default icon)

thank you very much.



Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 3:51am

Hi,

if you show Menu using CommandBars you need add this icon to XTPImageManager()->SetIcon(..)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
skyliou View Drop Down
Newbie
Newbie
Avatar

Joined: 27 August 2009
Location: Taiwan
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote skyliou Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 4:17am
Hi oleg,
if i am not show Menu using CommandBars, how can i do?

my dialog is no commandbar but i study sample

there are commandbar samples.

now i set a loadicon function

    UINT uiMenuImg[] = {ID_CONNECT_ONE,ID_DISCONNECT_ONE_EX,ID_MOTIONDETECTION,ID_TALK,ID_CAMERASETTING,ID_SOUND_NOTY,ID_CONNECT, ID_SNAPSHOT_SINGLE};
    XTPImageManager()->SetIcons(IDB_BMP_ICON_IMG, uiMenuImg, _countof(uiMenuImg), CSize(16, 16),xtpImageNormal);

but there is no response.

is anything i ignore?

Oleg, thanks a lot.

James
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.124 seconds.