Click here to Skip to main content
15,924,935 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GetProcAddress problem... Pin
LukeV2-Dec-03 10:30
LukeV2-Dec-03 10:30 
GeneralRe: GetProcAddress problem... Pin
Tim Smith2-Dec-03 15:35
Tim Smith2-Dec-03 15:35 
QuestionSize of a CDHTMLDialog? Pin
Robert Mooney2-Dec-03 7:41
Robert Mooney2-Dec-03 7:41 
AnswerRe: Size of a CDHTMLDialog? Pin
Peter Molnar2-Dec-03 14:21
Peter Molnar2-Dec-03 14:21 
GeneralRe: Size of a CDHTMLDialog? Pin
Robert Mooney6-Dec-03 16:15
Robert Mooney6-Dec-03 16:15 
GeneralRe: Size of a CDHTMLDialog? Pin
Peter Molnar7-Dec-03 3:01
Peter Molnar7-Dec-03 3:01 
GeneralRe: Size of a CDHTMLDialog? Pin
Robert Mooney9-Dec-03 5:55
Robert Mooney9-Dec-03 5:55 
GeneralRe: Size of a CDHTMLDialog? Pin
Peter Molnar9-Dec-03 10:38
Peter Molnar9-Dec-03 10:38 
I am glad the second suggestion worked!

As for the the offscreen method, 2 thoughts:
1.According to your experience, a not shown HTML window has no sizes. This might be surprising at first sight but it is quite obvious at the second: how a text is rendered in a HTML container window, depends on the current window's width and height, unless you specified some style either for the whole doc or just for the given element. If the window has no size, no rendering is possible.
MSHTML::IHTMLStylePtr spStyle;
spElem->get_style(&spStyle);
spStyle->get_width(...);
spStyle->get_height(...);

This actually gets the stylesheet's current width and height data as seen from the element, but there is not much chance that it will show any realistic sizes if you didn't specify any such style beforehand.

2.Create an invisible child window on your DHTML dialog from activeX, and do on it whatever you wanted to in an "invisible" manner. Such a window should have a width and a height, as result of which a text is supposed to be rendered.


Peter Molnar
AnswerRe: Size of a CDHTMLDialog? Pin
Maciej Jaros7-Dec-12 7:21
Maciej Jaros7-Dec-12 7:21 
GeneralDraw an Icon Pin
Hadi Dayvary2-Dec-03 6:52
professionalHadi Dayvary2-Dec-03 6:52 
GeneralRe: Draw an Icon Pin
David Crow2-Dec-03 9:40
David Crow2-Dec-03 9:40 
GeneralRe: Draw an Icon Pin
Monty22-Dec-03 19:15
Monty22-Dec-03 19:15 
GeneralKeyboard event in Dialog Box Pin
Member 3322372-Dec-03 6:32
Member 3322372-Dec-03 6:32 
GeneralRe: Keyboard event in Dialog Box Pin
GeMe_Hendrix2-Dec-03 11:18
GeMe_Hendrix2-Dec-03 11:18 
GeneralPlot graph Pin
Best Friend2-Dec-03 6:20
Best Friend2-Dec-03 6:20 
GeneralRe: Plot graph Pin
Member 3322372-Dec-03 7:58
Member 3322372-Dec-03 7:58 
GeneralSplitter with left side TreeView right side RichEditCtrlView Pin
Henitz2-Dec-03 5:55
Henitz2-Dec-03 5:55 
GeneralRe: Splitter with left side TreeView right side RichEditCtrlView Pin
Monty22-Dec-03 19:19
Monty22-Dec-03 19:19 
GeneralRe: Splitter with left side TreeView right side RichEditCtrlView Pin
Henitz3-Dec-03 10:40
Henitz3-Dec-03 10:40 
GeneralF1 Help for Dynamic dialog boxes Pin
ellenu2-Dec-03 4:53
ellenu2-Dec-03 4:53 
GeneralMSComm error Pin
El'Cachubrey2-Dec-03 4:29
El'Cachubrey2-Dec-03 4:29 
GeneralRe: MSComm error Pin
KellyR2-Dec-03 4:37
KellyR2-Dec-03 4:37 
QuestionSetting the cursor of a button? Pin
KellyR2-Dec-03 4:19
KellyR2-Dec-03 4:19 
AnswerRe: Setting the cursor of a button? Pin
valikac2-Dec-03 5:46
valikac2-Dec-03 5:46 
GeneralRe: Setting the cursor of a button? Pin
KellyR2-Dec-03 6:21
KellyR2-Dec-03 6:21 

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.