|
Hi,
Lets say I have a grid with edit controls in it. I want the up and down arrow keys to move up and down between rows. Now lets say I'm using SHAutoComplete to auto-complete paths typed into said edit controls.
If the combo box drop list is active, I want up and down to move between items in the list. If it isn't active I want default row movement to occur.
My question is: Is it possible to tell whether the drop list of a combo is active at time of keypress so I can return TRUE or FALSE appropriatly in my PreTranslateMessage so that the desired behaviour occurs?
Auto-completion isn't essential for this project so "Give up, too hard" is a perfectly acceptable answer for me...
|
|
|
|
|
Take a look at the funcition CComboBox::GetDroppedState(). It should do what you need.
Roger Allen
Sonork 100.10016
I think I need a new quote, I am on the prowl, so look out for a soft cute furry looking animal, which is really a Hippo in disguise. Its probably me.
|
|
|
|
|
|
yes.
i do and have had no problems at all.
-c
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."
-- Theodore Roosevelt
|
|
|
|
|
|
i had vc6 and i installed vc7 and everything simply worked - MSDN works in both cases, no problems.
-c
"To announce that there must be no criticism of the president, or that we are to stand by the president right or wrong, is not only unpatriotic and servile, but is morally treasonable to the American public."
-- Theodore Roosevelt
|
|
|
|
|
Pavel Sokolov wrote:
Can I install VS.NET after VS.60 ?
What about MSDN?
They use seperate MSDN's. VS6 uses October 2001 (or earlier).
VS.NET uses Jan2002 or later
I've been running with both on my machines for months and have had no problems.
Michael
Time flies like an arrow. Fruit flies like a banana
|
|
|
|
|
Hi there!
Michael P Butler wrote:
They use seperate MSDN's. VS6 uses October 2001 (or earlier).
I have one machine which has MSDN Jan 2002 and VC6.0 (I know, no good idea...) and now, i don't have any usefull MSDN on that machine, cause seems to be that there is no way back and the help doesn't work anymore (neither old nor new one..)
Olli
I feel like I'm diagonally parked in a parallel universe.....
|
|
|
|
|
I have them both installed on my machine. Each one is using their own MSDN collection. The only problem is that VS.NET becomes the default program that opens the .cpp, .h, .dsw, .dsp etc., so you may consider being careful when double-clicking one of them.
Best regards,
Alexandru Savescu
|
|
|
|
|
Right-click the file and choose "Open MSDEV"
Concussus surgo.
When struck I rise.
|
|
|
|
|
hello,
I am looking for a way to convert a double to the char representation.
e.g. double x=12.3456
char y[10];
|
|
|
|
|
|
See CString::Format() or sprintf() .
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Thx you very much!!!
|
|
|
|
|
Hi,
I am able to install an Icon ShortCut with my application! But I discover that: not all Desktop of every PC is located at the same place (ie: c:\Windows\Desktop)!
Therefore if the application at Run Time can not know where the Desktop location in-advance, then it can not install the Icon ShortCut at the right place!
Except we have to search for that (Desktop location of that PC), is there any simple way to install the Icon ShortCut without searching? Or with seraching is there any simple codes to do that?
I appreciate a lot if someone help me here.
|
|
|
|
|
See SHGetSpecialFolderLocation() . On Win2K, use SHGetFolderLocation() instead.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Hi,
Thanks for your advices, I will try to use it! But I would like to know a bit more:
In one PC, there might be more than one user to use ... in this case, how can we know which Desktop is ON, in order to install Icon ShortCut at the right place?
Many thanks & regards,
Anh Truong
|
|
|
|
|
Hi Anh,
Try CSIDL_DESKTOPDIRECTORY and CSIDL_COMMON_DESKTOPDIRECTORY as CSIDLs.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I want to ask how to make the child frame maximize and non-resizing?
Thx you very much ^_^
|
|
|
|
|
I haven't been able to find a MFC book I like. "Teach Yourself Visual Studio .NET in 21 Days" seems to assume that I am new to C++ and only want to modify code without understanding it. "Introduction to MFC Programming with Visual C++" covers the fundamentals first, but the first half dozen examples in the book do not complie as written!
So I have decided just to use the MSDN Libaray to understand the fundamentals then I will read Teach Yourself book when I am able to read and understand the code the Wizards Generate.
I already have a firm grasp of the Win 32 API and am proficent at C++.
Unfortunately there is a lot of information and it seems I would have to already know MFC to determine the best strategy for learning MFC.
I would appreciate any advice on what sections/topics to cover and in what order.
Thanks.
|
|
|
|
|
Jeff Prosise's book "Programming Windows using MFC" is a worthy read for those who know the Win32 API and C++. I expect you'll be able to breeze thru the book pretty quickly. Imho, it's a lot better than the "Learn mumble in n time units" books.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
I'd start with Scribble tutorial. It demonstrates most important MFC concepts quite nicely.
Tomasz Sowinski -- http://www.shooltz.com
Never argue with an idiot, he'll bring you to his level and beat you with experience.
|
|
|
|
|
On WinNT/2K/XP, how do determine what privilege
level a process is executing in (eg whether
the process has LocalSystem privileges)? Is
there any API call to use?
|
|
|
|
|
Look for OpenProcessToken and GetTokenInformation
|
|
|
|
|
Does the process calling these functions require any special access rights? My application can only execute with normal user privileges.
|
|
|
|