Click here to Skip to main content
16,011,744 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Sorting Unicode CStrings correctly Pin
David Crow29-Nov-07 4:27
David Crow29-Nov-07 4:27 
AnswerRe: Sorting Unicode CStrings correctly Pin
petermcwerner29-Nov-07 4:41
petermcwerner29-Nov-07 4:41 
AnswerRe: Sorting Unicode CStrings correctly Pin
Mike Dimmick29-Nov-07 6:50
Mike Dimmick29-Nov-07 6:50 
QuestionWhy modeless dialog blank Pin
_Pinux_29-Nov-07 1:56
_Pinux_29-Nov-07 1:56 
AnswerRe: Why modeless dialog blank Pin
toxcct29-Nov-07 2:01
toxcct29-Nov-07 2:01 
GeneralRe: Why modeless dialog blank Pin
_Pinux_29-Nov-07 2:42
_Pinux_29-Nov-07 2:42 
GeneralRe: Why modeless dialog blank Pin
CPallini29-Nov-07 3:30
mveCPallini29-Nov-07 3:30 
GeneralRe: Why modeless dialog blank Pin
_Pinux_29-Nov-07 4:05
_Pinux_29-Nov-07 4:05 
Another dialog hosts a pointer as a private data member:
ModelessDlg * m_pModelessDlg;

When creating the modeless dialog:
if(m_pModelessDlg)<br />
{<br />
    m_pModelessDlg->SetForegroundWindow();<br />
}<br />
else<br />
{<br />
    m_pModelessDlg = new ModelessDlg(this);<br />
    m_pModelessDlg->Create(ModelessDlg::IDD, this);<br />
    m_pModelessDlg->ShowWindow(SW_SHOW);<br />
}


There is a CProgressCtrl on this dialog. Does it matter if I create and display the modeless dialog without initializing the progress control? I think I should be able to see an empty progress bar on that dialog.

As an alternative, instead of using ShowWindow, I tried to set the Visible property of this modeless dialog to Yes. Then I got the modeless dialog displayed correctly (With all controls displayed including the progress ctrl). BUT another error has occurred: the modeless dialog was kind of in a No responding state for 3 seconds. Then I could move the dialog around but could not switch the focus to the parent dialog. In addition when moving the dialog around, a great number of fake dialogs were made like a tail to the original one(When happening, the available memory of my computer was still big enough)





Toe the line
Thread the needle
Think outside of the box

QuestionRe: Why modeless dialog blank Pin
David Crow29-Nov-07 3:46
David Crow29-Nov-07 3:46 
AnswerRe: Why modeless dialog blank Pin
_Pinux_29-Nov-07 4:25
_Pinux_29-Nov-07 4:25 
QuestionMulti threading Pin
Jothi.G8129-Nov-07 1:19
Jothi.G8129-Nov-07 1:19 
AnswerRe: Multi threading Pin
Cedric Moonen29-Nov-07 1:29
Cedric Moonen29-Nov-07 1:29 
GeneralRe: Multi threading Pin
Cedric Moonen29-Nov-07 1:37
Cedric Moonen29-Nov-07 1:37 
GeneralRe: Multi threading Pin
Luc Pattyn29-Nov-07 1:44
sitebuilderLuc Pattyn29-Nov-07 1:44 
GeneralRe: Multi threading Pin
Jothi.G8129-Nov-07 1:48
Jothi.G8129-Nov-07 1:48 
GeneralRe: Multi threading Pin
Cedric Moonen29-Nov-07 1:56
Cedric Moonen29-Nov-07 1:56 
QuestionRe: Multi threading Pin
David Crow29-Nov-07 3:36
David Crow29-Nov-07 3:36 
GeneralRe: Multi threading Pin
led mike29-Nov-07 5:19
led mike29-Nov-07 5:19 
AnswerRe: Multi threading Pin
KarstenK29-Nov-07 2:24
mveKarstenK29-Nov-07 2:24 
AnswerRe: Multi threading Pin
Randor 29-Nov-07 4:20
professional Randor 29-Nov-07 4:20 
GeneralRe: Multi threading Pin
Roger Stoltz29-Nov-07 4:29
Roger Stoltz29-Nov-07 4:29 
QuestionCMyView post a message for CMyApp to process Pin
followait29-Nov-07 1:07
followait29-Nov-07 1:07 
AnswerRe: CMyView post a message for CMyApp to process Pin
Nelek29-Nov-07 1:37
protectorNelek29-Nov-07 1:37 
GeneralRe: CMyView post a message for CMyApp to process Pin
followait29-Nov-07 3:17
followait29-Nov-07 3:17 
Questionincluding vector header Pin
Schehaider_Aymen29-Nov-07 1:05
Schehaider_Aymen29-Nov-07 1:05 

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.