C++ Builder XE, Passing and handling user-defined messages
I am trying to learn how to pass and handle messages in a VCL forms app. I've been digging the internet for some time and found this Suppose I have a progress bar I want to update using messages (btw if there's any other better way, I am eager to hear it) So I made a simple project to test the stuff and here's what I have (RECEIVER is a name of a form with progress bar, SENDER is a button used to send messages, updBar is a function to update progress bar, and 123456 is a message ID I want to use): Unit1.cpp: #include <vcl.h> #pragma hdrstop #include "Unit1.h" //--------------------------------