Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Question for the IE internals gurus Pin
ian mariano29-Oct-02 1:53
ian mariano29-Oct-02 1:53 
GeneralRe: Question for the IE internals gurus Pin
Eugene Polonsky29-Oct-02 13:28
Eugene Polonsky29-Oct-02 13:28 
GeneralReplacing GINA Pin
Anders Molin28-Oct-02 13:59
professionalAnders Molin28-Oct-02 13:59 
GeneralRe: Replacing GINA Pin
Daniel Lohmann29-Oct-02 3:46
Daniel Lohmann29-Oct-02 3:46 
GeneralRe: Replacing GINA Pin
Anders Molin29-Oct-02 3:52
professionalAnders Molin29-Oct-02 3:52 
GeneralDeranged CHtmlCtrl Pin
monrobot1328-Oct-02 13:39
monrobot1328-Oct-02 13:39 
I'm using the CHtmlCtrl from this article http://www.microsoft.com/msj/0100/c++/c++0100.asp[^] so I can put the CHtmlView in my dialog based app and it works fine except for one problem. When I load my app the CHtmlCtrl sits in a state of disarray, what I mean is the ctrl just flashes bars of the form color and doesn't load anything until I click a menu item. Once I do that the page loads and all is well until the CHtmlCtrl gets covered by another window then the whole things starts again. Here's the code I'm using to paint the window:
CWnd* pParent = GetParent ();

CRect rect;
pParent->GetWindowRect (&rect);
pParent->ScreenToClient (&rect);
MoveWindow (&rect, TRUE);
I want the CHtmlCtrl to be resized to the size of the window that's why I'm using the code above. If I take out the code above then the CHtmlCtrl isn't updated until a menu item is clicked. I'm completely baffled as to what the menu items are calling besides the OnPaint handler that is making the page load correctly. Any help would be very much appreciated. If you want anymore code or information just let me know.

Thanks in advance.

- monrobot13
GeneralRe: Deranged CHtmlCtrl Pin
Chris Losinger28-Oct-02 20:02
professionalChris Losinger28-Oct-02 20:02 
GeneralRe: Deranged CHtmlCtrl Pin
monrobot1329-Oct-02 6:11
monrobot1329-Oct-02 6:11 
GeneralRe: Deranged CHtmlCtrl Pin
Chris Losinger29-Oct-02 6:15
professionalChris Losinger29-Oct-02 6:15 
GeneralRe: Deranged CHtmlCtrl Pin
monrobot1329-Oct-02 7:10
monrobot1329-Oct-02 7:10 
GeneralCFileDialog?? HELP! Pin
Pett28-Oct-02 13:06
Pett28-Oct-02 13:06 
GeneralEvent Handling Problem in WIN32/MFC App. Pin
loopguru28-Oct-02 12:58
loopguru28-Oct-02 12:58 
QuestionHow to get icons of all opened windows? Pin
Artem Moroz28-Oct-02 12:16
Artem Moroz28-Oct-02 12:16 
AnswerRe: How to get icons of all opened windows? Pin
dabs31-Oct-02 4:46
dabs31-Oct-02 4:46 
GeneralRe: How to get icons of all opened windows? Pin
Artem Moroz31-Oct-02 10:32
Artem Moroz31-Oct-02 10:32 
GeneralRe: How to get icons of all opened windows? Pin
dabs31-Oct-02 13:03
dabs31-Oct-02 13:03 
GeneralSaving with MFC Pin
dinner@628-Oct-02 11:30
dinner@628-Oct-02 11:30 
GeneralRe: Saving with MFC Pin
Christian Graus28-Oct-02 11:34
protectorChristian Graus28-Oct-02 11:34 
GeneralRe: Saving with MFC Pin
valikac28-Oct-02 11:37
valikac28-Oct-02 11:37 
GeneralRe: Saving with MFC Pin
dinner@628-Oct-02 11:59
dinner@628-Oct-02 11:59 
GeneralRe: Saving with MFC Pin
valikac28-Oct-02 12:12
valikac28-Oct-02 12:12 
GeneralRe: Saving with MFC Pin
Christian Graus28-Oct-02 13:25
protectorChristian Graus28-Oct-02 13:25 
GeneralRe: Saving with MFC Pin
ian mariano28-Oct-02 17:38
ian mariano28-Oct-02 17:38 

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.