Click here to Skip to main content
15,919,422 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LOW speed in opening Access database ! Pin
Andreas Saurwein29-Aug-02 4:19
Andreas Saurwein29-Aug-02 4:19 
Questionhow to create an item on right click menu Pin
Brakanjan28-Aug-02 5:40
Brakanjan28-Aug-02 5:40 
AnswerRe: how to create an item on right click menu Pin
Andreas Saurwein28-Aug-02 5:45
Andreas Saurwein28-Aug-02 5:45 
AnswerRe: how to create an item on right click menu Pin
Chris Losinger28-Aug-02 5:46
professionalChris Losinger28-Aug-02 5:46 
AnswerRe: how to create an item on right click menu Pin
Mike Upton28-Aug-02 5:48
Mike Upton28-Aug-02 5:48 
GeneralRe: how to create an item on right click menu Pin
Mike Upton28-Aug-02 5:49
Mike Upton28-Aug-02 5:49 
GeneralRe: how to create an item on right click menu Pin
Brakanjan28-Aug-02 5:51
Brakanjan28-Aug-02 5:51 
Answera faster way Pin
Emilio Guijarro28-Aug-02 6:59
Emilio Guijarro28-Aug-02 6:59 
Using shell extensions is the most common way, but there is a very less complicated way using the registry, which allows to add commands to the "right click menu" without writing a COM component; just adding a registry key.

Here is a example:

We want to add a new option in the context menu of ".exe" files, well, we open regedit and go to the key "HKEY_CLASSES_ROOT\exefile" (or ".XXX" for other extension). Here, it must be a key called "shell" (if it doesn´t exist, we should create it). Under this key we add the name for the new option in the menu, for example "Scan". Now into the "Scan" key, it should be created a new key called "command", whose default value should be the name of the command to execute when clicking our command, for example "c:\scanner.exe %1" ("%1" is replaced by the file clicked in the explorer)

This allows not adding icons or other extended features.

"nobody knows it, but you´ve got a secret smile, and you use it only for me"
GeneralCComboBox - react to change Pin
john john mackey28-Aug-02 5:40
john john mackey28-Aug-02 5:40 
GeneralRe: CComboBox - react to change Pin
Pavel Klocek28-Aug-02 5:46
Pavel Klocek28-Aug-02 5:46 
GeneralRe: CComboBox - react to change Pin
Chris Losinger28-Aug-02 5:47
professionalChris Losinger28-Aug-02 5:47 
GeneralRe: CComboBox - react to change Pin
Tomasz Sowinski28-Aug-02 5:49
Tomasz Sowinski28-Aug-02 5:49 
GeneralRe: CComboBox - react to change Pin
john john mackey28-Aug-02 6:13
john john mackey28-Aug-02 6:13 
GeneralAutomatically Incrementing Build/Version VC6 Projects Pin
Mark Donkers28-Aug-02 5:32
Mark Donkers28-Aug-02 5:32 
GeneralRe: Automatically Incrementing Build/Version VC6 Projects Pin
Andreas Saurwein28-Aug-02 5:34
Andreas Saurwein28-Aug-02 5:34 
GeneralRe: Automatically Incrementing Build/Version VC6 Projects Pin
Chris Losinger28-Aug-02 5:34
professionalChris Losinger28-Aug-02 5:34 
GeneralRe: Automatically Incrementing Build/Version VC6 Projects Pin
Mark Donkers28-Aug-02 5:38
Mark Donkers28-Aug-02 5:38 
GeneralMFC and .Net any relation Pin
BK Pradeep28-Aug-02 5:13
BK Pradeep28-Aug-02 5:13 
GeneralRe: MFC and .Net any relation Pin
Tomasz Sowinski28-Aug-02 5:17
Tomasz Sowinski28-Aug-02 5:17 
GeneralRe: MFC and .Net any relation Pin
valikac28-Aug-02 6:12
valikac28-Aug-02 6:12 
GeneralRe: MFC and .Net any relation Pin
Pavel Klocek28-Aug-02 6:23
Pavel Klocek28-Aug-02 6:23 
Generaldefining as public, protected, or private Pin
John Uhlenbrock28-Aug-02 5:11
John Uhlenbrock28-Aug-02 5:11 
GeneralRe: defining as public, protected, or private Pin
User 665828-Aug-02 5:13
User 665828-Aug-02 5:13 
GeneralRe: defining as public, protected, or private Pin
Tomasz Sowinski28-Aug-02 5:18
Tomasz Sowinski28-Aug-02 5:18 
GeneralRe: defining as public, protected, or private Pin
John Uhlenbrock28-Aug-02 5:26
John Uhlenbrock28-Aug-02 5:26 

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.