Click here to Skip to main content
16,010,650 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionOveriding ToolTip Text an CSliderCtrl Pin
sharpanil26-Aug-05 10:15
sharpanil26-Aug-05 10:15 
QuestionExcel Automation Pin
Identity Undisclosed26-Aug-05 9:55
Identity Undisclosed26-Aug-05 9:55 
QuestionIncreasing/Decreasing text size of a shown html Pin
babyspidy26-Aug-05 7:50
babyspidy26-Aug-05 7:50 
AnswerRe: Increasing/Decreasing text size of a shown html Pin
David Crow26-Aug-05 9:14
David Crow26-Aug-05 9:14 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy27-Aug-05 15:33
babyspidy27-Aug-05 15:33 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios27-Aug-05 18:45
Jose Lamas Rios27-Aug-05 18:45 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy28-Aug-05 7:39
babyspidy28-Aug-05 7:39 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios28-Aug-05 8:53
Jose Lamas Rios28-Aug-05 8:53 
You are using a view class derived from CHtmlView, right? Then, assuming your class is named CYourView and derived from CHtmlView, the lines in red are what you'd need to add:
//////////////////////////////////////
// In YourView.h
 
class CYourView : public CHtmlView
{
   .
   .
   .
   //{{AFX_MSG(CYourView)
   <code>afx_msg void OnViewLargest();</code>
   .
   .
   .
   //}}AFX_MSG
   DECLARE_MESSAGE_MAP()
};

//////////////////////////////////////
// In YourView.cpp
 
BEGIN_MESSAGE_MAP(CYourView, CHtmlView)
   //{{AFX_MSG_MAP(CYourView)
   <code>ON_COMMAND(ID_VIEW_LARGEST, OnViewLargest)</code>
   .
   .
   .
   //}}AFX_MSG_MAP
END_MESSAGE_MAP()
 
.
.
.
<code>void CYourView::OnViewLargest()
{
   VARIANT var;
   var.vt = VT_I4;
   var.lVal = 4; // 1 means small
   ExecWB(OLECMDID_ZOOM, OLECMDEXECOPT_DONTPROMPTUSER, &var, NULL);
}</code>


--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy28-Aug-05 15:53
babyspidy28-Aug-05 15:53 
AnswerRe: Increasing/Decreasing text size of a shown html Pin
Jose Lamas Rios29-Aug-05 7:30
Jose Lamas Rios29-Aug-05 7:30 
GeneralRe: Increasing/Decreasing text size of a shown html Pin
babyspidy29-Aug-05 14:12
babyspidy29-Aug-05 14:12 
QuestionMCI Commands and AVI Video files; help needed... Pin
Bryan Anslow26-Aug-05 7:16
Bryan Anslow26-Aug-05 7:16 
AnswerRe: MCI Commands and AVI Video files; help needed... Pin
Bryan Anslow26-Aug-05 12:23
Bryan Anslow26-Aug-05 12:23 
QuestionMixed language dll Pin
Kash26-Aug-05 6:20
Kash26-Aug-05 6:20 
AnswerRe: Mixed language dll Pin
David Crow26-Aug-05 6:50
David Crow26-Aug-05 6:50 
GeneralRe: Mixed language dll Pin
Tim Smith26-Aug-05 11:14
Tim Smith26-Aug-05 11:14 
QuestionCMenu selected Pin
picazo26-Aug-05 6:08
picazo26-Aug-05 6:08 
AnswerRe: CMenu selected Pin
Roger Allen26-Aug-05 6:11
Roger Allen26-Aug-05 6:11 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:24
picazo26-Aug-05 6:24 
GeneralRe: CMenu selected Pin
Roger Allen26-Aug-05 6:51
Roger Allen26-Aug-05 6:51 
AnswerRe: CMenu selected Pin
David Crow26-Aug-05 6:11
David Crow26-Aug-05 6:11 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:19
picazo26-Aug-05 6:19 
GeneralRe: CMenu selected Pin
David Crow26-Aug-05 6:40
David Crow26-Aug-05 6:40 
GeneralRe: CMenu selected Pin
picazo26-Aug-05 6:53
picazo26-Aug-05 6:53 
GeneralRe: CMenu selected Pin
David Crow26-Aug-05 7:01
David Crow26-Aug-05 7:01 

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.