Click here to Skip to main content
15,901,284 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Changing screen resolution in windows xp Pin
David Crow22-Dec-04 5:07
David Crow22-Dec-04 5:07 
GeneralRe: Changing screen resolution in windows xp Pin
Mohammad A Gdeisat22-Dec-04 7:38
Mohammad A Gdeisat22-Dec-04 7:38 
GeneralStrange CTypedPtrArray error Pin
Polly Parrot22-Dec-04 3:31
Polly Parrot22-Dec-04 3:31 
Generalinserting bmp in file Pin
verma-rahul22-Dec-04 3:07
verma-rahul22-Dec-04 3:07 
GeneralRe: inserting bmp in file Pin
David Crow22-Dec-04 5:04
David Crow22-Dec-04 5:04 
GeneralRe: inserting bmp in file Pin
verma-rahul22-Dec-04 19:00
verma-rahul22-Dec-04 19:00 
Questionhow to prevent mfc dialog based app beign displayed on taskbar Pin
muharrem22-Dec-04 3:03
muharrem22-Dec-04 3:03 
AnswerRe: how to prevent mfc dialog based app beign displayed on taskbar Pin
Mohammad A Gdeisat22-Dec-04 8:03
Mohammad A Gdeisat22-Dec-04 8:03 
hi friend,

I quote the folowing from MSDN 2003, I dont know if it really works but I hope so:

I will simply tell you the answer: you must create your dialog as a child of an invisible window that has WS_EX_TOOLWINDOW set, and you must make sure your dialog has the WS_EX_APPWINDOW style turned off. If you read the documentation’s fine print, you might figure this out—but only if you use a powerful magnifying glass.
<br />
// pre-create window: set WS_EX_TOOLWINDOW style<br />
//<br />
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)<br />
{<br />
   if (CFrameWnd::PreCreateWindow(cs)) {<br />
      cs.dwExStyle |= WS_EX_TOOLWINDOW;<br />
      return TRUE;<br />
   }<br />
   return FALSE;<br />
}<br />
.<br />
.<br />
.<br />
<br />
// InitInstance: create dialog as child of invisible main frame<br />
//<br />
BOOL CMyApp::InitInstance()<br />
{<br />
   CMainFrame* pFrame = new CMainFrame;<br />
   m_pMainWnd = pFrame;<br />
   pFrame->LoadFrame(IDR_MAINFRAME, WS_OVERLAPPED, NULL, NULL);<br />
   CMyDlg dlg(pFrame);<br />
   int nResponse = dlg.DoModal();<br />
   if (nResponse == IDOK) {<br />
     } else if (nResponse == IDCANCEL) {<br />
   }<br />
   return FALSE;<br />
}



hope it helps Smile | :)

good luck



A candle looses nothing by lighting another candle
AnswerRe: how to prevent mfc dialog based app beign displayed on taskbar Pin
Mohammad A Gdeisat22-Dec-04 8:10
Mohammad A Gdeisat22-Dec-04 8:10 
QuestionSDI Project-How is a Dialog Resource loaded in a Window? Pin
jerry1211a22-Dec-04 2:32
jerry1211a22-Dec-04 2:32 
AnswerRe: SDI Project-How is a Dialog Resource loaded in a Window? Pin
Michael P Butler22-Dec-04 3:17
Michael P Butler22-Dec-04 3:17 
GeneralExport data from a process memory Pin
stumdoes22-Dec-04 1:17
stumdoes22-Dec-04 1:17 
GeneralRe: Export data from a process memory Pin
David Crow22-Dec-04 2:43
David Crow22-Dec-04 2:43 
GeneralRe: Export data from a process memory Pin
stumdoes22-Dec-04 4:45
stumdoes22-Dec-04 4:45 
GeneralRe: Export data from a process memory Pin
David Crow22-Dec-04 5:00
David Crow22-Dec-04 5:00 
GeneralRe: Export data from a process memory Pin
stumdoes22-Dec-04 5:17
stumdoes22-Dec-04 5:17 
GeneralRe: Export data from a process memory Pin
David Crow22-Dec-04 5:23
David Crow22-Dec-04 5:23 
GeneralRe: Export data from a process memory Pin
stumdoes22-Dec-04 20:23
stumdoes22-Dec-04 20:23 
GeneralRe: Export data from a process memory Pin
David Crow23-Dec-04 2:48
David Crow23-Dec-04 2:48 
GeneralADO ERROR error C2143: '_Connection' Pin
x86Assembeler22-Dec-04 0:57
x86Assembeler22-Dec-04 0:57 
GeneralRe: ADO ERROR error C2143: '_Connection' Pin
Blake Miller22-Dec-04 5:46
Blake Miller22-Dec-04 5:46 
GeneralNo. of char in RichEdit Pin
verma-rahul21-Dec-04 23:45
verma-rahul21-Dec-04 23:45 
GeneralRe: No. of char in RichEdit Pin
David Crow22-Dec-04 2:45
David Crow22-Dec-04 2:45 
GeneralPutting emoticons in rich edit Pin
verma-rahul21-Dec-04 23:25
verma-rahul21-Dec-04 23:25 
QuestionHow to invoke a web service from c++ project with a structure as parameter Pin
selim_by21-Dec-04 23:18
selim_by21-Dec-04 23:18 

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.