Re: How to keep my dialog on top?
- From: "AliR \(VC++ MVP\)" <AliR@xxxxxxxxxxxxx>
- Date: Fri, 29 Aug 2008 09:15:05 -0500
If you were new and told you to go and look at SetWindowPos, the first thing
you would probably run into in the docs would be the ::SetWindowPos. And
might use that instead of CWnd::SetWindowPos, without knowing that CWnd
wraps that call.
Obviously there would also be nothing wrong with that, but it's not clean
MFC programming.
AliR.
"David Ching" <dc@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:w%Ftk.23100$N87.4351@xxxxxxxxxxxxxxxxxxxxxxx
"AliR (VC++ MVP)" <AliR@xxxxxxxxxxxxx> wrote in message
news:ziAtk.11667$vn7.8054@xxxxxxxxxxxxxxxxxxxxxxx
Although its not necessary in c# it has become a habit for me, the
intelli-scense on the c# side is amazing. And using this. makes things go
alot faster.
In the original post, since the OP appeared to be new, I was just trying
to distinguish between the CWnd::SetWindowPos and the SDKs SetWindowPos.
I was trying to type this->SetWindowPos(.....);
You should try Visual Assist, then it does not matter whether you type
"this." or not! :-)
I thought you might be trying to distinguish CWnd::SetWindowPos() and
::SetWindowPos(), but this->SetWindowPos() == SetWindowPos(), so actually
it does not change the meaning at all. Oh well, small point, no big deal.
Cheers,
David
.
- Follow-Ups:
- Re: How to keep my dialog on top?
- From: BobF
- Re: How to keep my dialog on top?
- References:
- Re: How to keep my dialog on top?
- From: Rob Prins
- Re: How to keep my dialog on top?
- From: AliR \(VC++ MVP\)
- Re: How to keep my dialog on top?
- From: AliR \(VC++ MVP\)
- Re: How to keep my dialog on top?
- From: David Ching
- Re: How to keep my dialog on top?
- Prev by Date: IMPLEMENT_SERIAL for nested classes
- Next by Date: Re: Excel Programming: SetItem and SetValue Does not Work
- Previous by thread: Re: How to keep my dialog on top?
- Next by thread: Re: How to keep my dialog on top?
- Index(es):