Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reading files without MFC Pin
Mustafa Demirhan17-Jan-02 10:36
Mustafa Demirhan17-Jan-02 10:36 
GeneralRe: Reading files without MFC Pin
Jens Kreiensiek18-Jan-02 0:39
Jens Kreiensiek18-Jan-02 0:39 
QuestionWhich thread am i looking at? Pin
Bill Wilson17-Jan-02 9:37
Bill Wilson17-Jan-02 9:37 
AnswerRe: Which thread am i looking at? Pin
Ernest Laurentin17-Jan-02 10:54
Ernest Laurentin17-Jan-02 10:54 
GeneralQuestion on CButton::Setmap Pin
17-Jan-02 8:22
suss17-Jan-02 8:22 
GeneralRe: Question on CButton::Setmap Pin
Fazlul Kabir17-Jan-02 8:38
Fazlul Kabir17-Jan-02 8:38 
GeneralRe: Question on CButton::Setmap Pin
17-Jan-02 10:11
suss17-Jan-02 10:11 
GeneralI need help with ShowWindow Pin
Abdiel Jaramillo17-Jan-02 8:10
Abdiel Jaramillo17-Jan-02 8:10 
have a dialog with several CWebBrowser controls and i want to show only one at a time, the rest must be hidden. The user must be able to select the browser to be shown.

I tried using a pointer in the dialog box that points to the currently selected CWebBrowser but when i used ShowWindow to hide the last selected CWebBrowser, i can't use the pointer anymore because it always sends an unhandled exception error when i try to call a function.

What i'm i doing wrong ?. Is there anotehr way to do it ?

Here is the source code:

void CClickMgr1View::SetBrowserCtrl(CWebBrowser* aCtrl)
{

m_browser->ShowWindow(SW_HIDE);

m_browser = aCtrl; // Here is where i get the error

m_browser->ShowWindow(SW_SHOW);
ResizeBrowser();

}

void CClickMgr1View::ResizeBrowser()
{
RECT rect;

if (m_init)
{
this->GetClientRect(&rect);
m_browser->SetWidth(rect.right-15);
m_browser->SetHeight(rect.bottom-15);
}

}

Abdiel Jaramillo
Arango Software International
Panama, Rep. of Panama.
GeneralRe: I need help with ShowWindow Pin
Carlos Antollini17-Jan-02 8:38
Carlos Antollini17-Jan-02 8:38 
GeneralRe: I need help with ShowWindow Pin
Carlos Antollini17-Jan-02 8:39
Carlos Antollini17-Jan-02 8:39 
General3D mesh Pin
Rajveer17-Jan-02 7:50
Rajveer17-Jan-02 7:50 
GeneralRe: 3D mesh Pin
Roger Allen18-Jan-02 6:31
Roger Allen18-Jan-02 6:31 
GeneralExchange 5.5 Programming Pin
Aaron Schaefer17-Jan-02 7:49
Aaron Schaefer17-Jan-02 7:49 
GeneralRe: Exchange 5.5 Programming Pin
Michael P Butler17-Jan-02 22:11
Michael P Butler17-Jan-02 22:11 
GeneralOpenGL Pin
Rajveer17-Jan-02 7:45
Rajveer17-Jan-02 7:45 
GeneralRe: OpenGL Pin
Christian Graus17-Jan-02 9:37
protectorChristian Graus17-Jan-02 9:37 
GeneralApplication, Restart thyself! (how?) Pin
Chris Losinger17-Jan-02 7:26
professionalChris Losinger17-Jan-02 7:26 
GeneralRe: Application, Restart thyself! (how?) Pin
Chris Meech17-Jan-02 7:36
Chris Meech17-Jan-02 7:36 
GeneralRe: Application, Restart thyself! (how?) Pin
Jamie Hale17-Jan-02 7:49
Jamie Hale17-Jan-02 7:49 
GeneralRe: Application, Restart thyself! (how?) Pin
Chris Losinger17-Jan-02 7:58
professionalChris Losinger17-Jan-02 7:58 
GeneralRe: Application, Restart thyself! (how?) Pin
Carlos Antollini17-Jan-02 8:07
Carlos Antollini17-Jan-02 8:07 
GeneralRe: Application, Restart thyself! (how?) Pin
Joaquín M López Muñoz17-Jan-02 8:43
Joaquín M López Muñoz17-Jan-02 8:43 
GeneralVC Debugging Q Pin
Todd Smith17-Jan-02 7:00
Todd Smith17-Jan-02 7:00 
GeneralRe: VC Debugging Q Pin
Joaquín M López Muñoz17-Jan-02 7:08
Joaquín M López Muñoz17-Jan-02 7:08 
GeneralRe: VC Debugging Q Pin
Jonas Larsson17-Jan-02 23:31
Jonas Larsson17-Jan-02 23:31 

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.