Click here to Skip to main content
15,891,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Diff bw BOOL and bool?? Pin
Aescleal15-Aug-10 7:41
Aescleal15-Aug-10 7:41 
AnswerRe: Diff bw BOOL and bool?? Pin
Eugen Podsypalnikov16-Aug-10 0:33
Eugen Podsypalnikov16-Aug-10 0:33 
AnswerRe: Diff bw BOOL and bool?? Pin
KarstenK16-Aug-10 2:59
mveKarstenK16-Aug-10 2:59 
QuestionMinimize dialog to taskbar Pin
john563214-Aug-10 21:27
john563214-Aug-10 21:27 
AnswerRe: Minimize dialog to taskbar Pin
Garth J Lancaster14-Aug-10 21:37
professionalGarth J Lancaster14-Aug-10 21:37 
GeneralRe: Minimize dialog to taskbar Pin
john563214-Aug-10 21:46
john563214-Aug-10 21:46 
AnswerRe: Minimize dialog to taskbar PinPopular
Richard MacCutchan15-Aug-10 0:58
mveRichard MacCutchan15-Aug-10 0:58 
AnswerRe: Minimize dialog to taskbar [modified] Pin
Eugen Podsypalnikov15-Aug-10 10:12
Eugen Podsypalnikov15-Aug-10 10:12 
I would apply just the following to the words of Richard:
there are two - known for me - reasons for "a dialog" to be minimized:
- the dialog is modeless (could be a child of the desktop Smile | :) )
- the dialog is the application window (the style WS_EX_APPWINDOW could be applied in OnInitDialog() Smile | :) )

An emulation of the second reason:
int CYourDialog::OnInitDialog()
{
  int iResult = CDialog::OnInitDialog();

  // Adding of the APP-style...
  LONG lStyle = GetWindowLong(GetSafeHwnd(), GWL_EXSTYLE) | WS_EX_APPWINDOW;
  SetWindowLong(GetSafeHwnd(), GWL_EXSTYLE, lStyle);
  // Now the dialog should be ready to be minimized...
  // CAUTION: the parent window stays disabled,
  // if the dialog is not modeless... :)

  //...

  return iResult;
}

virtual void BeHappy() = 0;
modified on Monday, August 16, 2010 3:48 AM

GeneralRe: Minimize dialog to taskbar Pin
Richard MacCutchan15-Aug-10 21:31
mveRichard MacCutchan15-Aug-10 21:31 
Questionofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani14-Aug-10 19:19
Joseph Marzbani14-Aug-10 19:19 
AnswerRe: ofstream can't write a "double" value into a file correctly Pin
Garth J Lancaster14-Aug-10 20:07
professionalGarth J Lancaster14-Aug-10 20:07 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani14-Aug-10 20:49
Joseph Marzbani14-Aug-10 20:49 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Garth J Lancaster14-Aug-10 21:19
professionalGarth J Lancaster14-Aug-10 21:19 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani14-Aug-10 22:34
Joseph Marzbani14-Aug-10 22:34 
AnswerRe: ofstream can't write a "double" value into a file correctly Pin
Aescleal14-Aug-10 22:01
Aescleal14-Aug-10 22:01 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani14-Aug-10 22:40
Joseph Marzbani14-Aug-10 22:40 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Aescleal15-Aug-10 7:38
Aescleal15-Aug-10 7:38 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani18-Aug-10 17:11
Joseph Marzbani18-Aug-10 17:11 
AnswerRe: ofstream can't write a "double" value into a file correctly Pin
Richard MacCutchan15-Aug-10 1:03
mveRichard MacCutchan15-Aug-10 1:03 
GeneralRe: ofstream can't write a "double" value into a file correctly [modified] Pin
Joseph Marzbani18-Aug-10 17:16
Joseph Marzbani18-Aug-10 17:16 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Richard MacCutchan18-Aug-10 21:44
mveRichard MacCutchan18-Aug-10 21:44 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Joseph Marzbani19-Aug-10 18:23
Joseph Marzbani19-Aug-10 18:23 
GeneralRe: ofstream can't write a "double" value into a file correctly Pin
Richard MacCutchan19-Aug-10 22:16
mveRichard MacCutchan19-Aug-10 22:16 
QuestionHow to handle the edit message in CMFCToolBarComboBoxButton? Pin
kalrey14-Aug-10 4:10
kalrey14-Aug-10 4:10 
QuestionLoading dll in c++ Pin
Pryabu14-Aug-10 3:53
Pryabu14-Aug-10 3:53 

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.