![]() |
set accelerators |
Post Reply ![]() |
Author | |
bluesaphire ![]() Newbie ![]() ![]() Joined: 07 August 2006 Location: India Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() Posted: 24 August 2006 at 5:09am |
hi, i am setting the accelerators in my application using
pCommandBars->GetShortcutManager()->SetAccelerators(acceleratorID);
but how can i check at runtime whether the input shortcut key(given through keyboard by end user)is present in the accelerator table?
my requirement is something like first checking whether the key is present in the active accelerator table(say accelerator1),if not check in the second table(accelerator2) and take the action associated with it if any.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
Catch WM_COMMAND and check if HIWORD(wParam) == 0x1
if (message == WM_COMMAND && HIWORD(wParam) == 0x1)
{
...
}
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bluesaphire ![]() Newbie ![]() ![]() Joined: 07 August 2006 Location: India Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Thanks for the quick reciprocation Oleg
![]() does codejock provide any functionality to check whether a particular accelerator is present in the accelerator table.(say ctrl+N is present in the table or not).
This would give the solution for the approach i have taken.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
No, doesn't :(
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bluesaphire ![]() Newbie ![]() ![]() Joined: 07 August 2006 Location: India Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
hi,
what is the functionality associated with CompareAccelKey() method of the CXTPShortcutManager class.
i dont see any documentation nor find the usage of it in the samples.
|
|
![]() |
|
Oleg ![]() Senior Member ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
It used internally only. Compre shortcut in string with pressed key.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
bluesaphire ![]() Newbie ![]() ![]() Joined: 07 August 2006 Location: India Status: Offline Points: 14 |
![]() ![]() ![]() ![]() ![]() |
Thanks Oleg
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |