Adding ‘What's This' Help to an MFC Property Sheet

Issue

How do I add What's This? Help to an MFC property sheet? Do I need the help of a developer?

Solution

(Give these instructions to your developer so he or she can add What's This? Help to a Microsoft Foundation Class property sheet.)

You can get the What's This? mark by overriding the OnInitiDialog in the derived PropertySheet class and calling ModifyStyleEX. Use the following steps to call ModifyStyleEX.

BOOL COrdersSheet::OnInitDialog()

{

// TODO: Add your specialized code here and/or call the base class

CPropertySheet::OnInitDialog();

return ModifyStyleEx(0, WS_EX_CONTEXTHELP);

}

If you choose "Context Sensitive Help" in the App Wizard, you will also need to comment out the Command Handler for the ID_HELP message in the derived Prop. Sheet Class:

BEGIN_MESSAGE_MAP(COrdersSheet, CPropertySheet)

//{{AFX_MSG_MAP(COrdersSheet)

// ON_COMMAND(ID_HELP, OnHelp)

//}}AFX_MSG_MAP

END_MESSAGE_MAP()

 Adobe

更快、更輕鬆地獲得協助

新的使用者?

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX 2024

Adobe MAX
創意大會

10 月 14 至 16 日邁阿密海灘和線上

Adobe MAX

創意大會

10 月 14 至 16 日邁阿密海灘和線上