Re: How to keep my dialog on top?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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



.