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...
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...
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...
Damn! I didn't know that BCBDEV is going offline and now I need to check the FAQ about applications in the system tray. If you happen to have offline version of this website or this particular FAQ (with source, please), can you share it?
A bitmap in TImage. How to smoothly covert this bitmap to grayscale to achive the same effect like in Windows XP when you call a Shutdown system/Logoff user dialog?
There is a combo-box in my program listing all available CD-ROM drives, by their letters (D:\, E:\, F:\, ...). I wish to add a button which will eject the selected drive. I know there is a mciSendString() to do this but no matter which drive I select in the combo, my audio drive is ejected every...
1. Is there any way to hide Maximize button but keep the Minimize button visible and functional? If you simply disable it, it stays visible.
2. How to add a button to form's caption bar which minimizes the window to tray (you can see such thing, for example, on GetRight windows - a button with...
How to display a Hand cursor over a label, for example, but the one defined in system (which is displayed in a web browser etc.)? I don't want "crHandPoint" from "Cursor" property, or any custom cursor loaded from resources.
I have finally managed to disable popup menu in TShockwaveFlash component. The solution was in writing a function that responds to right-click message send to an application. Here's the code (green is what you have to write):
In "Unit1.h"
private:
void __fastcall NoRightClick(TMsg &Message...
1. I've imported "Flash.ocx" so that I have a TShockwaveFlash component which allows me to display Macromedia Flash movies in my applications. Everything is fine, exept I wish to disable the popup menu displayed with right click. I mean to disable it completely, not just the playback options...
Is there any way to prevent the form from scaling below a given size? For example, all controls on the form are organized for designed dimensions, let's say 640*480, and I don't want the form to be sized below this. Sizing up is allowed, so I cannot set form's border to non-resizeable.
This may sound stupid but what is the difference between, assingning a value to a variable or calling a function in form's constructor and in OnCreate?
This example is based on the various sample applications I've found on the Internet. The following code makes your application's form, when dragged, snap to screen edges.
Green lines is what you have to write. Red are already in the code.
In "Unit1.h" add this:
public:
__fastcall...
How to catch a keypress outside an application, e.g. when a program is running in a tray so any keypresses and mouse clicks do not occure on the form or any of its controls.
Ok, there are many apps that use this in their prefrences window, Winamp for example. You have a ListView on the left and set of options on the right. When you click an item (options group) from the list, contents are replaced with something else. The whole thing looks as if there was a...
How can I turn the monitor off and on at application's runtime? I know about SendMessage(Application->Handle, WM_SYSCOMMAND, SC_MONITORPOWER, 0); but it doesn't work (I use Windows XP but I'm not sure if it has something to do with it).
Every time I try to compile a project in my C++Builder 6 Enterprise I get an error message "[Linker Fatal Error] Fatal: Expected a file name:". This occurs even when I compile a default File->New->Application without modifying anything in the code.
I've re-installed Builder and nothing has changed.
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.