Hey
Check the header file of Math.h. In mine are the following definitions
/* Constants rounded for 21 decimals. */
#define M_E 2.71828182845904523536
#define M_LOG2E 1.44269504088896340736
#define M_LOG10E 0.434294481903251827651
#define M_LN2 0.693147180559945309417...
Reducing compile time as much as possible helps a lot.
This is a good article that gives advice on reducing compile time:
http://developers.sun.com/prodtech/cc/articles/CC_perf/content.html
I personally try to:
- If more than one class is used to perform a task then I declare them all in the...
I found the WinAPI function call for the cursor positon.
So my code to open a popup after a the tray icon is clicked is:
POINT WinPoint;
GetCursorPos(&WinPoint);
PopupMenu1->Popup(WinPoint.x,WinPoint.y);
:D
Jack
ps Thanks for the feedback 2ffat
Ok, so I've worked that one out. I used the macros to specify a custom message handler for my custom windows message type that I specified when I created the system tray icon.
BEGIN_MESSAGE_MAP
MESSAGE_HANDLER(msg code, msg obj, msg handler method)
END_MESSAGE_MAP(TForm)
So now I just need...
Hey
I have made an application that is minimised to the system tray. What I cannot seem to work out is how to capture windows messages from the system tray icon so I can do things like open a popup menu.
Any help would be appreciated.
Jack
That makes a lot of sense, I think I often get too caught up in forcing fancy frameworks with inheritance and interfaces when it isn't always appropriate. Thanks for the help
Jack
hey guys,
I'm trying to understand some harder OO concepts at the moment. My question is this.
If I already have a class that performs almost all that I require, would it be better to write a new class that inherits from the current class, or to write a new class that wraps the current class and...
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.