Click here to Skip to main content
15,902,811 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CMainFrame from CView? Pin
Dominik Reichl3-Sep-03 23:28
Dominik Reichl3-Sep-03 23:28 
GeneralRe: CMainFrame from CView? Pin
Anonymous4-Sep-03 0:07
Anonymous4-Sep-03 0:07 
GeneralCombo box Index and Edit Control Pin
Member 3971373-Sep-03 23:17
Member 3971373-Sep-03 23:17 
GeneralRe: Combo box Index and Edit Control Pin
David Crow4-Sep-03 3:02
David Crow4-Sep-03 3:02 
GeneralHelp...win 98 to win XP Pin
fynox3-Sep-03 23:12
fynox3-Sep-03 23:12 
GeneralRe: Help...win 98 to win XP Pin
Magnus Westin3-Sep-03 23:45
Magnus Westin3-Sep-03 23:45 
GeneralProblem with CListCtrl Pin
Ph@ntom3-Sep-03 22:52
Ph@ntom3-Sep-03 22:52 
GeneralStrange Behavior with ::CreateDialogIndirect Pin
Bernhard3-Sep-03 22:20
Bernhard3-Sep-03 22:20 
Hi..

following problems:
i have got a project with dialogs with a lot of activeX elemts on it (the form elements from microsoft)

the program runs & compiles fine under WinNt4.0
when i run & compile the program under Win2k i have got the following program.
Before it jumps into "OnInitDialog" the Dialog is closed (e.g. PostNCDestroy is called)..
The error (difference) occured at this piece of code.
BOOL CWnd::CreateDlgIndirect(LPCDLGTEMPLATE lpDialogTemplate,
	CWnd* pParentWnd, HINSTANCE hInst)
{
.... 
   m_nModalResult = -1;
   // m_nFlags = 0 (both Systems)
   m_nFlags |= WF_CONTINUEMODAL;
   // m_nFlags = 16 (both Systems)
   // create modeless dialog
   AfxHookWindowCreate(this);
   hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
      pParentWnd->GetSafeHwnd(), AfxDlgProc);
   // m_nFlags = 256 (Win2k) or 272 (WinNT)

   // handle EndDialog calls during OnInitDialog
   // True for Win2k, false for WinNT
   if (hWnd != NULL && !(m_nFlags & WF_CONTINUEMODAL))
   {
       ::DestroyWindow(hWnd);
       hWnd = NULL;
   }
..
}


Any Ideas anyone ?
Thanks in advance,
Bernhard



"I'm from the South Bronx, and I don't care what you say: those cows look dangerous."
U.S. Secretary of State Colin Powell at George Bush's ranch in Texas
GeneralRe: Strange Behavior with ::CreateDialogIndirect Pin
Iain Clarke, Warrior Programmer3-Sep-03 22:29
Iain Clarke, Warrior Programmer3-Sep-03 22:29 
GeneralRe: Strange Behavior with ::CreateDialogIndirect Pin
Bernhard3-Sep-03 22:37
Bernhard3-Sep-03 22:37 
GeneralThreads, Dialog based appl Pin
KKR3-Sep-03 21:50
KKR3-Sep-03 21:50 
GeneralRe: Threads, Dialog based appl Pin
VIKASK_773-Sep-03 23:52
VIKASK_773-Sep-03 23:52 
GeneralRe: Threads, Dialog based appl Pin
jhwurmbach4-Sep-03 2:59
jhwurmbach4-Sep-03 2:59 
QuestionHow to get the Handle of a WebCam? Pin
nwillie3-Sep-03 21:43
nwillie3-Sep-03 21:43 
GeneralStupid problem Pin
Rohit  Sinha3-Sep-03 21:17
Rohit  Sinha3-Sep-03 21:17 
GeneralRe: Stupid problem Pin
jhwurmbach3-Sep-03 21:49
jhwurmbach3-Sep-03 21:49 
GeneralRe: Stupid problem Pin
Rohit  Sinha4-Sep-03 7:59
Rohit  Sinha4-Sep-03 7:59 
GeneralRe: Stupid problem Pin
Ted Ferenc3-Sep-03 21:55
Ted Ferenc3-Sep-03 21:55 
GeneralRe: Stupid problem Pin
David Crow4-Sep-03 3:07
David Crow4-Sep-03 3:07 
GeneralProblem with thread Pin
Majid Shahabfar3-Sep-03 20:35
Majid Shahabfar3-Sep-03 20:35 
GeneralRe: Problem with thread Pin
Magnus Westin3-Sep-03 21:08
Magnus Westin3-Sep-03 21:08 
GeneralDirectX problem Pin
SteelModule3-Sep-03 19:58
SteelModule3-Sep-03 19:58 
GeneralRe: DirectX problem Pin
JWood5-Sep-03 3:38
JWood5-Sep-03 3:38 
GeneralDetermine if System is Shutting Down/Restarting or Logging off Pin
Paul Farry3-Sep-03 19:58
professionalPaul Farry3-Sep-03 19:58 
GeneralRe: Determine if System is Shutting Down/Restarting or Logging off Pin
Dominik Reichl3-Sep-03 21:51
Dominik Reichl3-Sep-03 21:51 

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.