Click here to Skip to main content
15,903,385 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to get text from Form? Pin
Hamid_RT21-Oct-07 22:41
Hamid_RT21-Oct-07 22:41 
GeneralRe: How to get text from Form? Pin
truestepper21-Oct-07 22:47
truestepper21-Oct-07 22:47 
GeneralRe: How to get text from Form? Pin
Hamid_RT22-Oct-07 1:51
Hamid_RT22-Oct-07 1:51 
QuestionCursor Disappearing Pin
pankajbhalla21-Oct-07 20:07
pankajbhalla21-Oct-07 20:07 
QuestionChanging lpDialogTemplate Pin
hxhl9521-Oct-07 19:24
hxhl9521-Oct-07 19:24 
AnswerRe: Changing lpDialogTemplate Pin
Nelek22-Oct-07 4:16
protectorNelek22-Oct-07 4:16 
AnswerRe: Changing lpDialogTemplate Pin
hxhl9523-Oct-07 14:05
hxhl9523-Oct-07 14:05 
GeneralRe: Changing lpDialogTemplate Pin
Nelek29-Oct-07 21:29
protectorNelek29-Oct-07 21:29 
I think the error comes because the parameter has to be set before creation. For example, I use it (like that) in my CChildFrm inside PreCreateWindow(CREATESTRUCT& cs), but this is not valid for dialogs, just for views/windows (I'm not 100% sure about this last sentence).

I can not tell you a right solution, but a bypass/trick that could work is to use the MoveWindow or SetWindowPos inside your OnInitDialog and set the coordinates in a value that ensures it goes outside the area of desktop, or do it so small that is not seen.

For example.

BOOL CMyDlg::OnInitDialog ()
{
MoveWindow (3000, 3000, width, height, FALSE); //Option 1, outside desktop range

MoveWindow (0, 0, 1, 1, FALSE); //Option 2, just 1 square pixel dialog surface

}


Hope it helps

Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

QuestionNeed help using CCmdTarget::OnEvent(...)? Pin
PhanMinhDuy21-Oct-07 19:05
PhanMinhDuy21-Oct-07 19:05 
AnswerRe: Need help using CCmdTarget::OnEvent(...)? Pin
CodingLover21-Oct-07 23:03
CodingLover21-Oct-07 23:03 
QuestionStudy materials for C++/MFC Pin
CodingLover21-Oct-07 18:17
CodingLover21-Oct-07 18:17 
AnswerRe: Study materials for C++/MFC Pin
_AnsHUMAN_ 21-Oct-07 18:45
_AnsHUMAN_ 21-Oct-07 18:45 
GeneralRe: Study materials for C++/MFC Pin
CodingLover21-Oct-07 21:48
CodingLover21-Oct-07 21:48 
GeneralRe: Study materials for C++/MFC Pin
Hamid_RT21-Oct-07 21:59
Hamid_RT21-Oct-07 21:59 
GeneralRe: Study materials for C++/MFC Pin
CodingLover21-Oct-07 22:28
CodingLover21-Oct-07 22:28 
GeneralRe: Study materials for C++/MFC Pin
Hamid_RT21-Oct-07 22:34
Hamid_RT21-Oct-07 22:34 
GeneralRe: Study materials for C++/MFC Pin
CodingLover21-Oct-07 22:43
CodingLover21-Oct-07 22:43 
GeneralRe: Study materials for C++/MFC Pin
Hamid_RT22-Oct-07 2:46
Hamid_RT22-Oct-07 2:46 
GeneralRe: Study materials for C++/MFC Pin
CodingLover22-Oct-07 18:23
CodingLover22-Oct-07 18:23 
GeneralRe: Study materials for C++/MFC Pin
Hamid_RT22-Oct-07 19:25
Hamid_RT22-Oct-07 19:25 
GeneralRe: Study materials for C++/MFC Pin
CodingLover22-Oct-07 20:37
CodingLover22-Oct-07 20:37 
AnswerRe: Study materials for C++/MFC Pin
Hamid_RT21-Oct-07 19:29
Hamid_RT21-Oct-07 19:29 
GeneralRe: Study materials for C++/MFC Pin
CodingLover21-Oct-07 22:26
CodingLover21-Oct-07 22:26 
GeneralRe: Study materials for C++/MFC Pin
Hamid_RT21-Oct-07 22:28
Hamid_RT21-Oct-07 22:28 
GeneralRe: Study materials for C++/MFC Pin
CodingLover21-Oct-07 22:30
CodingLover21-Oct-07 22:30 

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.