|
I am working with a MDI window, where my child window (viwe) is derived from CFromView. With my windows setting the size of form template is (x = 336, y = 218) (as seen from resource view). But when i am loading the child window it gets some default size, which i am not able trace out. My question is how to stop this defaulting setting and assign the actual size (which is the size the from template) ? Please help me to get the solution.
Sandip
|
|
|
|
|
|
Thanks for the suggestion and the code snippet.
Its working fine.
But how do i get the size of from template, which is associated with my view class?
Best Regards
Sandip
|
|
|
|
|
Hi all,
When i run my MFC application,
if i click in an edit control an
press the "return" button the application
exits.
Why ?
How can i avoid that ?
Thanx in advance,
Desmo16.
|
|
|
|
|
Set edit box style from resource editor as "Want return"
or pEdit->ModifyStyle(0,ES_WANTRETURN);
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Patte
|
|
|
|
|
I think this will not work..
try this....
simply overide the OnOK() and do not call CDialog::OnOK()
OnOK(){}
Else give Multiline property to edit box
Dream bigger... Do bigger...Expect smaller
aji
-- modified at 7:14 Wednesday 12th July, 2006
|
|
|
|
|
and OnCancel for Esc
whitesky
|
|
|
|
|
You can also aproach PretranslateMessage function
SaRath.
"Where I am from, there is no plan B. So, take advantage of today becuase tomorrow is not promised. - 50 Cent"
My Blog | Understanding State Patte
|
|
|
|
|
PretranslateMessage
Regards,
FarPointer
Blog:FARPOINTER
|
|
|
|
|
set the Want Return style for the edit control.
if u dont want to ur application when the enter key is pressed,
simply overide the OnOK() funtion in the dialog class. Inside that funtion do not call CDialog::OnOK()..
nave
|
|
|
|
|
forgot to say set the multiline property(ES_MULTILINE) also to the edit box.
nave
|
|
|
|
|
Desmo16 wrote:
Hi all,
When i run my MFC application,
if i click in an edit control an
press the "return" button the application
Also make you Edit Control Multiline!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
You can set Want return to true in property window from editbox
whitesky
|
|
|
|
|
Hai
can any one pls tell what is ShellExecute command ? and when do we use it?
Thanks in advance
|
|
|
|
|
|
Try to use msdn...always....
This function is used to start the external exe... from you application .
"A winner is not one who never fails...but the one who never quits"
|
|
|
|
|
Ganesh_T wrote: This function is used to start the external exe...
Actually, it all depends on the verb. The "open" verb is one of many that are used by ShellExecute() .
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
|
Good response - I couldn't remember where that article was.
Darka [Xanya]
|
|
|
|
|
Darka wrote: Good response - I couldn't remember where that article was.
You are Welcome
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
|
WhiteSky wrote: ee http://www.codeproject.com/system/newbiespawn.asp[^]
Humm.. Our Mind works in same direction
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
oh its very interest for me why! first we have posted two answer same (shellexcute and dialogparam or like this i think you remember there you said Hmmm)
Two this is second happen for me in this site when i answer to questions i see another answers in same time
(1 min = 1min)(13 min = 13min) and now You (maybe its telepathy) I have this problem i think with Nibu Thomas in this site our answers was same in a time and also same answers!
whitesky
|
|
|
|
|
See here.
"The largest fire starts but with the smallest spark." - David Crow
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
will some one u tell me ..where i can the movie clip of water of few min?
thx Regards
NooR
|
|
|
|