Click here to Skip to main content
16,007,472 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralEasy Way to Hide Taskbar Button Pin
Anonymous29-Apr-05 8:49
Anonymous29-Apr-05 8:49 
GeneralColors Pin
Anonymous29-Apr-05 7:27
Anonymous29-Apr-05 7:27 
GeneralRe: Colors Pin
Alexander M.,29-Apr-05 9:17
Alexander M.,29-Apr-05 9:17 
GeneralRe: Colors Pin
David Crow29-Apr-05 9:39
David Crow29-Apr-05 9:39 
GeneralUrgent Help Needed on "Multiple Monitors" and "Monitor Tiling" Pin
King 149340029-Apr-05 7:09
King 149340029-Apr-05 7:09 
Generalregistering filetypes for internet explorer Pin
Steve Kearon29-Apr-05 7:05
Steve Kearon29-Apr-05 7:05 
GeneralRe: registering filetypes for internet explorer Pin
David Crow29-Apr-05 9:44
David Crow29-Apr-05 9:44 
GeneralRe: registering filetypes for internet explorer Pin
Steve Kearon29-Apr-05 10:46
Steve Kearon29-Apr-05 10:46 
If memory serves, this is lifted from the MFC base classes (VC++6) and adapted somewhat:

SetRegKey(HKEY_LOCAL_MACHINE, _T("software\\microsoft\\windows\\currentversion\\app paths\\MYPROG.EXE"), szPathName);<br />
SetRegKey(HKEY_LOCAL_MACHINE, _T("software\\microsoft\\windows\\currentversion\\app paths\\MYPROG.EXE"), szPath, _T("Path"));<br />
<br />
DelRegTree(HKEY_CLASSES_ROOT, _T("MyProg.File"));<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File"), _T("MyProg File"));<br />
<br />
CString szDefaultIconCommandLine;<br />
szDefaultIconCommandLine.Format(_T("%s,-%d"),szPathName,UI_CONFIG_DOCFRAME_ID);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\DefaultIcon"), szDefaultIconCommandLine);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\QuickView"), _T("*"));<br />
<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\open\\ddeexec"), _T("[open(\"%1\")]"));<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\print\\ddeexec"), _T("[print(\"%1\")]"));<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\printto\\ddeexec"), _T("[printto(\"%1\",\"%2\",\"%3\",\"%4\")]"));<br />
<br />
CString szPathDDE = szPathName + _T(" /dde");<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\open\\command"), szPathDDE);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\print\\command"), szPathDDE);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\printto\\command"), szPathDDE);<br />
<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\open\\ddeexec\\application"), szApplicationKeyValue);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\print\\ddeexec\\application"), szApplicationKeyValue);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\printto\\ddeexec\\application"), szApplicationKeyValue);<br />
<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\open\\ddeexec\\topic"), szTopicKeyValue);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\print\\ddeexec\\topic"), szTopicKeyValue);<br />
SetRegKey(HKEY_CLASSES_ROOT, _T("MyProg.File\\shell\\printto\\ddeexec\\topic"), szTopicKeyValue);<br />
<br />
SetRegKey(HKEY_CLASSES_ROOT, _T(".xyz"), _T("MyProg.File"));


a few names have been changed, etc

Any clues?
Steve
GeneralCopying project settings Pin
KingOfTheFaireys29-Apr-05 6:56
KingOfTheFaireys29-Apr-05 6:56 
Generalhelp in com wrapper Pin
smarty1229-Apr-05 6:36
smarty1229-Apr-05 6:36 
GeneralRe: help in com wrapper Pin
BlackDice29-Apr-05 11:01
BlackDice29-Apr-05 11:01 
GeneralRe: help in com wrapper Pin
ThatsAlok29-Apr-05 19:50
ThatsAlok29-Apr-05 19:50 
GeneralAbout ADO Command object's prepared attribute Pin
Finix29-Apr-05 6:00
Finix29-Apr-05 6:00 
GeneralAdding Dialog to mdi mfc app Pin
os3omaha29-Apr-05 5:20
os3omaha29-Apr-05 5:20 
GeneralRe: Adding Dialog to mdi mfc app Pin
Wes Aday29-Apr-05 9:38
professionalWes Aday29-Apr-05 9:38 
GeneralRe: Adding Dialog to mdi mfc app Pin
Gary R. Wheeler30-Apr-05 3:11
Gary R. Wheeler30-Apr-05 3:11 
GeneralMake a sound with CSoundManager &amp; CSound Pin
ilFrate29-Apr-05 4:56
ilFrate29-Apr-05 4:56 
GeneralRe: Make a sound with CSoundManager &amp; CSound Pin
Franken29-Apr-05 11:16
Franken29-Apr-05 11:16 
GeneralRe: Make a sound with CSoundManager &amp; CSound Pin
ilFrate29-Apr-05 20:44
ilFrate29-Apr-05 20:44 
GeneralRe: Make a sound with CSoundManager &amp; CSound Pin
Franken30-Apr-05 5:55
Franken30-Apr-05 5:55 
GeneralRe: Make a sound with CSoundManager &amp; CSound Pin
ilFrate1-May-05 23:07
ilFrate1-May-05 23:07 
GeneralRe: Make a sound with CSoundManager &amp; CSound Pin
Franken1-May-05 23:45
Franken1-May-05 23:45 
GeneralVisual C++ 2005 Express &amp; PSDK Pin
Anonymous29-Apr-05 4:31
Anonymous29-Apr-05 4:31 
GeneralRe: Visual C++ 2005 Express &amp; PSDK Pin
Chris Meech29-Apr-05 9:40
Chris Meech29-Apr-05 9:40 
GeneralRe: Visual C++ 2005 Express &amp; PSDK Pin
Anonymous29-Apr-05 18:03
Anonymous29-Apr-05 18:03 

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.