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 ScrumpyJackk

  1. ScrumpyJackk

    Is there a reserved word for PI

    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...
  2. ScrumpyJackk

    Code Completion Slow

    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...
  3. ScrumpyJackk

    windows message from system tray icon

    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
  4. ScrumpyJackk

    windows message from system tray icon

    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...
  5. ScrumpyJackk

    windows message from system tray icon

    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
  6. ScrumpyJackk

    inheritance vs class wrapping

    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
  7. ScrumpyJackk

    inheritance vs class wrapping

    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...

Part and Inventory Search

Back
Top