| RTL reference|Glossary|Tips/Tricks|FREE App/VCL|Best'O'Net|Books|Link To |
| Windows Shell Extensions Info Tip | |||||||||||||||||
| Page 2: InfoTip Introduction and Overview; Implementing Infotip Extensions | |||||||||||||||||
InfoTip Introduction and Overview ![]() Implementing Infotip Extensions IQueryInfo provides the text to display in the hint window and contains two methods: GetInfoTip is defined as follows: function GetInfoTip(dwFlags: DWORD; var ppwszTip: PWideChar): HResult; stdcall;
.dwFlags currently not used Important Note IPersistFile is what the shell uses to provide the extension with information about the file the user is hovering over. The interface defines five methods: .IsDirty checks an object for changes since it was last saved to its current file. We don't need this for Infotip extensions so we return E_NOTIMPL. Load is defined as follows:
function Load(pszFileName: PoleStr;
dwMode: LongInt ): HResult; stdcall; .pszFileName points to a zero-terminated string containing the absolute path of the file to open. .dwMode specifies some combination of the values from the STGM enumeration to indicate the access mode to use when opening the file. We are only using the IPersistFile interface to obtain the path and filename of the file; we are not actually using the interface to access the file so we can ignore the flags. Our standard implementation of the Load method will be to store the contents of pszFileName to a private variable to be used by IQueryInfo::GetInfoTip to locate the file. Next page > Delphi project: Infotip; Registering Infotip Extensions > Page 1, 2, 3 |
|||||||||||||||||
All graphics (if any) in this feature created by Zarko Gajic.
| More Delphi |
|
· Learn another routine every day - RTL Quick Reference. · Download free source code applications and components. · Talk about Delphi Programming, real time. · Link to the Delphi Programming site from your Web pages. · Tutorials, articles, tech. tips by date: 2001|2000|1999|1998 or by TOPIC. |
|
· NEXT ARTICLE:
New...Access Database from Delphi - DB/13. Chapter thirteen of the free Delphi Database Course for beginners. How to create an MS Access database without the MS Access. How to add an index to an existing table, how to join two tables and set up referential integrity. No MS Access, only Pure Delphi code. |
| Stay informed with all new and interesting things about Delphi (for free). |
|
|
| Got some code to share? Got a question? Need some help? |

