Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by imagenetics

  1. imagenetics

    Help needed: Handling dynamic popup menu items

    That helped. Thank you.
  2. imagenetics

    Help needed: Handling dynamic popup menu items

    Hi there! I'd call myself rather a fan of programming, than a programmer, and most of my knowledge concerning C++ is based on C++Builder. During Christmas break I decided to finally try some programming in pure WinAPI. I wrote a tiny application which sits in the shell notification area an...
  3. imagenetics

    Double colon - Not sure what for

    I have a question about functions preceded with double colon ("::"). Sometimes I find two source files and in one of them the function is preceded with double colon while in other file the same function is not. In both cases the result of the function is the same. What is the difference...
  4. imagenetics

    Tray icon missing after Explorer crash (how to fix)

    I have found the solution and posted it in the FAQ section: faq101-5937
  5. imagenetics

    How to keep an icon in the tray after Explorer's crash

    Introduction: If you wrote an application which displays an icon in Taskbar Notification Area (aka System Tray), you probably wonder how to restore this icon after Explorer's crash without restarting the application. The solution lies in responding to a message sent to the application when...
  6. imagenetics

    Tray icon missing after Explorer crash (how to fix)

    I've written an application which resides in notification area aka tray (something like Daemon Tools). Now, if the Explorer crashes and the restarts, the icon of my application is missing in the tray (however, for exapmle, Norton AntiVirus icon is still there), but the application itself is...
  7. imagenetics

    Taskbar button's menu

    I'm using InsertMenuItem(...) to add custom items to my application's system menu. As for the menu of a window, everything works fine, but new items in the menu of a taskbar button - I know how to insert them in the menu, but how to make them work? Examples appreciated. Thanks.
  8. imagenetics

    File association

    How to determine full path (including the executable file name) to the application to which a specific file is assiociated? For example, I'm selecting a file (any file) and on a label I want to display the path to its "mother" application. The extension of a given file is determined by...
  9. imagenetics

    Invisible mouse cursor

    To hide the cursor, use ShowCursor(false);. The cursor will be invisible but active. To show the cursor, use, ofcourse, ShowCursor(true);
  10. imagenetics

    How to detect content of Clipboard?

    Read about Clipboard() and HasFormat() in Builder's help. Here's a simple example: Unit1.h #include <Clipbrd.hpp> Unit1.cpp void __fastcall TForm1::Button1Click(TObject *Sender) { if(Clipboard()->HasFormat(CF_TEXT)) { Label1->Caption = "There's text in the clipboard."; } }
  11. imagenetics

    Custom component

    A couple of days ago I've downloaded a component which was provided with source code. I added few more properties. Everything works and now the component suits my needs even better. The component is originally designed for Delphi, but, with or without my modifications, it works fine in Builder...
  12. imagenetics

    How to open .htm file in new browser?

    While writing a post, click "Preview Post" button. In "Editing Tips" there is a line Click Here for the full list of TGML tags..., click and find out how to beautify your post. The code blocks are explained in the table second from the end.
  13. imagenetics

    How to open .htm file in new browser?

    Don't open the URL directly. With ShellExecute() run browser's .exe and pass the URL as the parameter. ShellExecute(NULL, "open", "[Browser's .exe]", "[URL]", "", SW_SHOWDEFAULT);
  14. imagenetics

    Who can share BCBDEV offline?

    Hey, Totte. The code from BCBDEV is 100% correct, it works flawlessly, even when you simply copy and paste it. Carefuly examine your code and copare it with the original and I'm sure you'll find an error. As for the icon. "LITTLEICON" is a custom resource ID of the image that should be...
  15. imagenetics

    Who can share BCBDEV offline?

    Yes! Thank you very much! Have a star for this.

Part and Inventory Search

Back
Top