Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnKillFocus question Pin
9-Oct-01 6:53
suss9-Oct-01 6:53 
GeneralPorts Pin
John Uhlenbrock13-Aug-01 11:21
John Uhlenbrock13-Aug-01 11:21 
GeneralRe: Ports Pin
<k>Andreas Hoheisel13-Aug-01 21:06
<k>Andreas Hoheisel13-Aug-01 21:06 
GeneralRe: Ports Pin
13-Aug-01 22:50
suss13-Aug-01 22:50 
GeneralCreateProcess -> illegal instruction Pin
13-Aug-01 11:00
suss13-Aug-01 11:00 
GeneralA CWnd in a view... Re-size... Pin
13-Aug-01 11:00
suss13-Aug-01 11:00 
GeneralRe: A CWnd in a view... Re-size... Pin
Paolo Messina13-Aug-01 11:54
professionalPaolo Messina13-Aug-01 11:54 
GeneralRe: A CWnd in a view... Re-size... Pin
14-Aug-01 3:39
suss14-Aug-01 3:39 
I can see the control at it's original position, but if I move it, it is not display anymore. In fact my special control is only able to draw himself in the first rectangle he received in the create function.

example:
MySpecialControl.Create(CRect(10,10,100,50),this,1);
this will work very well
I can see my control but when i try to move it that way:
MySpecialControl.OnNewSize(this,CRect(10,35,100,50));
OnNewSize is a member function that i have create

void CMySpecialControl::OnNewSize(CWnd *pParent,CRect MyRect)
{
//that way
MoveWindow(MyRect,TRUE);

//or that way (i have also try the two...)
SetWindowPos(pParent,
MyRect.top,
MyRect.bottom,
MyRect.Width(),
MyRect.Height(),
SWP_SHOWWINDOW)
}
Maybe there something I don't understand whit windows...
By the way I've try this
PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
cs.style |=WS_CLIPCHILDREN ;

return CView::PreCreateWindow(cs);
}
nothing...

do I have to call the OnSize(UINT nType, int cx, int cy) or something like that?

thank you

Remi Morin
Remi.Morin@Lyrtech.com

GeneralRe: A CWnd in a view... Re-size... Pin
14-Aug-01 4:16
suss14-Aug-01 4:16 
GeneralHTTP Connection question... Pin
Cabadam13-Aug-01 10:31
Cabadam13-Aug-01 10:31 
GeneralRe: HTTP Connection question... Pin
14-Aug-01 4:46
suss14-Aug-01 4:46 
GeneralRe: HTTP Connection question... Pin
Cabadam15-Aug-01 4:47
Cabadam15-Aug-01 4:47 
GeneralClassy question Pin
otvac13-Aug-01 9:47
otvac13-Aug-01 9:47 
GeneralRe: Classy question Pin
Chris Losinger13-Aug-01 10:02
professionalChris Losinger13-Aug-01 10:02 
QuestionWhat to distribute with the final program build? Pin
13-Aug-01 9:00
suss13-Aug-01 9:00 
AnswerRe: What to distribute with the final program build? Pin
Gregg Carlstrom13-Aug-01 9:06
Gregg Carlstrom13-Aug-01 9:06 
AnswerRe: What to distribute with the final program build? Pin
Kuniva13-Aug-01 20:45
Kuniva13-Aug-01 20:45 
GeneralError in GetFieldValue() Pin
Tomas13-Aug-01 8:17
Tomas13-Aug-01 8:17 
GeneralRe: Error in GetFieldValue() Pin
Bret Faller13-Aug-01 8:33
Bret Faller13-Aug-01 8:33 
GeneralRe: Error in GetFieldValue() Pin
Tomas13-Aug-01 8:54
Tomas13-Aug-01 8:54 
GeneralRe: Error in GetFieldValue() Pin
Bret Faller13-Aug-01 9:02
Bret Faller13-Aug-01 9:02 
GeneralRe: Error in GetFieldValue() Pin
Tomas13-Aug-01 9:20
Tomas13-Aug-01 9:20 
GeneralRe: Error in GetFieldValue() Pin
Bret Faller13-Aug-01 11:04
Bret Faller13-Aug-01 11:04 
GeneralRe: Error in GetFieldValue() Pin
13-Aug-01 9:56
suss13-Aug-01 9:56 
GeneralRe: Error in GetFieldValue() Pin
Tomas13-Aug-01 12:01
Tomas13-Aug-01 12:01 

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.