incorrect; this-> would make sense, but this. does not. But why use it at
Thanks, problem solved:
this.SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
this.SetWindowPos(&wndNoTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
And it works outside OnInitDialog too, luckily. :-)
AliR (VC++ MVP) schreef:
Open the dialog in the dialog editor and set the Topmost property to
True.
You can also use SetWindowPos in the OnInitDialog
this.SetWindowPos(&wndTopMost,0,0,0,0,SWP_NOMOVE|SWP_NOSIZE);
AliR.
"Rob Prins" <robprins@xs4all.nl> wrote in message
news:48b575a6$0$199$e4fe514c@news.xs4all.nl...
Hi all,
Recently I've written a tiny tool for looking up words in a .txt-based
list. You could call it a very primitive dictionary. My problem is that
I'd like it to stay on top of all other windows, so I can see the word
I
looked up while reading or typing something else.
I know it's possible to fix this in the dialog editor, but how can I
switch it on or off from inside my code?
Thanks,
Rob
Joseph M. Newcomer [MVP]