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...
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...
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...
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...
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.
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...
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.";
}
}
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...
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.
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);
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.