Print Page | Close Window

Click Mouse RButtonDown Menu

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=15225
Printed Date: 16 November 2024 at 10:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Click Mouse RButtonDown Menu
Posted By: skyliou
Subject: Click Mouse RButtonDown Menu
Date 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.






Replies:
Posted By: Oleg
Date 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


Posted By: skyliou
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net