Click here to Skip to main content
15,914,066 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralSystem's ImageList Pin
Flatline15-Apr-02 21:45
Flatline15-Apr-02 21:45 
GeneralGetting the whole viewport size of SCrollView Pin
Flatline15-Apr-02 21:00
Flatline15-Apr-02 21:00 
GeneralMessage Box problem Pin
Yamuna15-Apr-02 18:27
Yamuna15-Apr-02 18:27 
GeneralRe: Message Box problem Pin
Christian Graus15-Apr-02 22:57
protectorChristian Graus15-Apr-02 22:57 
GeneralRe: Message Box problem Pin
Yamuna15-Apr-02 23:18
Yamuna15-Apr-02 23:18 
GeneralRe: Message Box problem Pin
Christian Graus15-Apr-02 23:26
protectorChristian Graus15-Apr-02 23:26 
GeneralRe: Message Box problem Pin
15-Apr-02 23:39
suss15-Apr-02 23:39 
GeneralHiding Web Browser Control in a dialog Pin
Alex Cramer15-Apr-02 18:08
Alex Cramer15-Apr-02 18:08 
Hi all!
I want to do next: user clicks the button, and Web Browser replaces by richedit control (in a dialog). TROUBLE: after hiding of web browser, its window handle become not valid. Here's a code:

void CCalendarDlg::OnViewEditSwitch()
{
CString strBtnText;
m_btnEditView.GetWindowText(strBtnText);

if(strBtnText == EDIT_BUTTON_TEXT)
{
m_btnEditView.SetWindowText(VIEW_BUTTON_TEXT);
m_Browser.ShowWindow(SW_HIDE);
m_wndRichEdit.ShowWindow(SW_SHOW);
}
else
{
m_btnEditView.SetWindowText(EDIT_BUTTON_TEXT);
m_wndRichEdit.ShowWindow(SW_HIDE);
m_Browser.ShowWindow(SW_SHOW);
}
}

ERROR:
Debug assertion failed here:

BOOL CWnd::ShowWindow(int nCmdShow)
{
ASSERT(::IsWindow(m_hWnd));

if (m_pCtrlSite == NULL)
return ::ShowWindow(m_hWnd, nCmdShow);
else
return m_pCtrlSite->ShowWindow(nCmdShow);
}

Help, please!
GeneralRe: Hiding Web Browser Control in a dialog Pin
Alex Cramer15-Apr-02 19:09
Alex Cramer15-Apr-02 19:09 
GeneralThe CE Emulator & CeRapiInvoke() Pin
Paul Wolfensberger15-Apr-02 17:10
Paul Wolfensberger15-Apr-02 17:10 
GeneralRe: The CE Emulator & CeRapiInvoke() Pin
Ray Kinsella16-Apr-02 4:36
Ray Kinsella16-Apr-02 4:36 
GeneralRe: The CE Emulator & CeRapiInvoke() Pin
Paul Wolfensberger16-Apr-02 16:57
Paul Wolfensberger16-Apr-02 16:57 
Generalneed help coverting a char* to a unsigned short* Pin
15-Apr-02 17:06
suss15-Apr-02 17:06 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Christian Graus15-Apr-02 17:10
protectorChristian Graus15-Apr-02 17:10 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Tim Smith16-Apr-02 2:21
Tim Smith16-Apr-02 2:21 
GeneralRe: need help coverting a char* to a unsigned short* Pin
moliate16-Apr-02 2:36
moliate16-Apr-02 2:36 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Le centriste16-Apr-02 3:22
Le centriste16-Apr-02 3:22 
GeneralRe: need help coverting a char* to a unsigned short* Pin
moliate16-Apr-02 4:22
moliate16-Apr-02 4:22 
GeneralRe: need help coverting a char* to a unsigned short* Pin
16-Apr-02 5:19
suss16-Apr-02 5:19 
Generalneed help coverting a char* to a unsigned short* Pin
15-Apr-02 17:06
suss15-Apr-02 17:06 
GeneralRe: need help coverting a char* to a unsigned short* Pin
Le centriste16-Apr-02 3:41
Le centriste16-Apr-02 3:41 
GeneralInitializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 15:39
valikac15-Apr-02 15:39 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 15:59
Diarrhio15-Apr-02 15:59 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
valikac15-Apr-02 16:03
valikac15-Apr-02 16:03 
GeneralRe: Initializing a CProgressCtrl Object Inside CDialog :: MFC Pin
Diarrhio15-Apr-02 16:17
Diarrhio15-Apr-02 16:17 

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.