« February 2007 »
S M T W T F S
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28
You are not logged in. Log in

Programming Tips
Tuesday, 6 February 2007
Auto completion
Mood:  chillin'
Topic: VC++

Goto Start->Run

Type C:\.....

You will get a dropdown list box with all the files and folders in C: drive.

Have you ever thought about incorporating this kind of a behavior into your application...

There is an API which does this... ( Microsoft was generous enough to create one and share it ). :)

The API is SHAutoComplete.

All you should have is an edit box. Get the handle to the edit box and pass it to this function. You will get a drop down

list box for the path that you are typing in the edit box.

Cool isn't it. :)

NOTE: Don't forget to call CoInitialize before using this function and of course CoUninitialize

Do look up this API in MSDN. You will find interesting options.

Have fun.


Posted by Nibu babu thomas at 4:45 PM
Updated: Monday, 26 February 2007 5:17 PM

View Latest Entries