Click here to Skip to main content
15,914,413 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: realizing virtual functions with *this parameter Pin
Andrew Walker22-Oct-04 16:57
Andrew Walker22-Oct-04 16:57 
GeneralRe: realizing virtual functions with *this parameter Pin
impeham23-Oct-04 1:38
impeham23-Oct-04 1:38 
GeneralRe: realizing virtual functions with *this parameter Pin
Andrew Walker23-Oct-04 4:59
Andrew Walker23-Oct-04 4:59 
GeneralWinhelp vs. HTML help context Pin
digwizfox22-Oct-04 12:52
digwizfox22-Oct-04 12:52 
GeneralRe: Winhelp vs. HTML help context Pin
Gary R. Wheeler22-Oct-04 14:46
Gary R. Wheeler22-Oct-04 14:46 
GeneralRe: Winhelp vs. HTML help context Pin
digwizfox25-Oct-04 8:12
digwizfox25-Oct-04 8:12 
GeneralRe: Winhelp vs. HTML help context Pin
digwizfox25-Oct-04 13:36
digwizfox25-Oct-04 13:36 
GeneralRe: Winhelp vs. HTML help context Pin
YoSilver22-Oct-04 21:07
YoSilver22-Oct-04 21:07 
I still use VS 6.0, but I guess my considerations could help.

All you need is to redefine the CWinApp virtual function WinHelp. Then, define a CString member m_strHelpFilePath and put a full path to your .chm in it in CApp::InitInstance. (You can do something different, but the idea is to form and store the .chm path).

Your WinHelp function might look like this:

void CApp::WinHelp(DWORD dwData, UINT nCmd) 
{
    HWND hwndDesktop = ::GetDesktopWindow();

    if (!HtmlHelp(hwndDesktop, 
                  m_strHelpFilePath, 
                  HH_HELP_CONTEXT, 
                  nCmd == HELP_CONTEXT ? dwData : 0)))
    {
        HtmlHelp(hwndDesktop, m_strHelpFilePath, HH_HELP_FINDER, 0);
    }
}


If you want your main frame to own the help window frame, pass m_pMainWnd->GetSafeHwnd() instead of hwndDesktop.

Hope this helps.
Generalplease! help me about antialiasing!!! Pin
Shiwan Sung22-Oct-04 12:37
Shiwan Sung22-Oct-04 12:37 
GeneralRe: please! help me about antialiasing!!! Pin
YoSilver22-Oct-04 21:14
YoSilver22-Oct-04 21:14 
GeneralRe: please! help me about antialiasing!!! Pin
Shiwan Sung22-Oct-04 22:14
Shiwan Sung22-Oct-04 22:14 
GeneralOCX on IE File-> New -> Window Problem Pin
shinay22-Oct-04 9:57
shinay22-Oct-04 9:57 
GeneralStatic Linking Pin
hyling22-Oct-04 8:59
hyling22-Oct-04 8:59 
GeneralRe: Static Linking Pin
Alexander M.,22-Oct-04 10:10
Alexander M.,22-Oct-04 10:10 
GeneralRe: Static Linking Pin
Michael Dunn22-Oct-04 13:52
sitebuilderMichael Dunn22-Oct-04 13:52 
GeneralRe: Static Linking Pin
hyling23-Oct-04 7:34
hyling23-Oct-04 7:34 
GeneralRe: Static Linking Pin
Uwe Keim23-Oct-04 4:56
sitebuilderUwe Keim23-Oct-04 4:56 
GeneralRe: Static Linking Pin
hyling23-Oct-04 7:33
hyling23-Oct-04 7:33 
GeneralRemote Office Automation Pin
Malcolm Smart22-Oct-04 8:50
Malcolm Smart22-Oct-04 8:50 
GeneralRe: Remote Office Automation Pin
Michael P Butler23-Oct-04 9:00
Michael P Butler23-Oct-04 9:00 
GeneralTroubling creating object Pin
AmorphousP22-Oct-04 7:04
AmorphousP22-Oct-04 7:04 
GeneralRe: Troubling creating object Pin
David Crow22-Oct-04 7:40
David Crow22-Oct-04 7:40 
GeneralRe: Troubling creating object Pin
AmorphousP22-Oct-04 9:37
AmorphousP22-Oct-04 9:37 
GeneralRe: Troubling creating object Pin
Maximilien22-Oct-04 9:51
Maximilien22-Oct-04 9:51 
GeneralRe: Troubling creating object Pin
AmorphousP22-Oct-04 10:34
AmorphousP22-Oct-04 10:34 

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.