Click here to Skip to main content
15,897,273 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Char to INT? Pin
Nitron11-Dec-02 13:23
Nitron11-Dec-02 13:23 
AnswerRe: Char to INT? Pin
Greven11-Dec-02 9:21
Greven11-Dec-02 9:21 
GeneralRe: Char to INT? Pin
Alvaro Mendez11-Dec-02 9:29
Alvaro Mendez11-Dec-02 9:29 
GeneralRe: Char to INT? Pin
Greven11-Dec-02 10:23
Greven11-Dec-02 10:23 
GeneralRe: Char to INT? Pin
Christian Graus11-Dec-02 10:03
protectorChristian Graus11-Dec-02 10:03 
AnswerRe: Char to INT? Pin
Ravi Bhavnani11-Dec-02 9:39
professionalRavi Bhavnani11-Dec-02 9:39 
GeneralIn Place Server Pin
Anthony988711-Dec-02 9:00
Anthony988711-Dec-02 9:00 
GeneralCatching OnSysCommand in own class Pin
BtL2711-Dec-02 8:44
BtL2711-Dec-02 8:44 
Hi,

i think this problem may be easy to answer for you.

I have created my own class:


-header-file:

class CTrayIcon : public CWnd
{
public:
CTrayIcon(); // Konstruktor
virtual ~CTrayIcon(); // Dekonstruktor

int AddTrayIcon(HICON pIcon,int iMenu);
protected:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTrayIcon)
//}}AFX_VIRTUAL
protected:
//{{AFX_MSG(CTrayIcon)
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

The Class-Wizard automatically adds the function OnSysCommand to the header and of course to the cpp. Now, i do not know, what i must do, that all messages of the dlg-window(main-dialog-window), especially WM_SYSCOMMAND, can catch in my class ?

GeneralRe: Catching OnSysCommand in own class Pin
Alvaro Mendez11-Dec-02 9:04
Alvaro Mendez11-Dec-02 9:04 
GeneralType Libraries and MFC Question Pin
Nick Parker11-Dec-02 8:40
protectorNick Parker11-Dec-02 8:40 
GeneralCopying CString to char* Pin
Like2Byte11-Dec-02 8:32
Like2Byte11-Dec-02 8:32 
GeneralRe: Copying CString to char* Pin
User 665811-Dec-02 8:43
User 665811-Dec-02 8:43 
GeneralRe: Copying CString to char* Pin
Like2Byte11-Dec-02 8:49
Like2Byte11-Dec-02 8:49 
GeneralRe: Copying CString to char* Pin
Michael Dunn11-Dec-02 8:49
sitebuilderMichael Dunn11-Dec-02 8:49 
GeneralRe: Copying CString to char* Pin
Like2Byte11-Dec-02 8:51
Like2Byte11-Dec-02 8:51 
GeneralRe: Copying CString to char* Pin
Alvaro Mendez11-Dec-02 8:56
Alvaro Mendez11-Dec-02 8:56 
GeneralRe: Copying CString to char* Pin
carrie11-Dec-02 10:39
carrie11-Dec-02 10:39 
GeneralRe: Copying CString to char* Pin
Gary R. Wheeler11-Dec-02 14:55
Gary R. Wheeler11-Dec-02 14:55 
GeneralRe: Copying CString to char* Pin
Shay Harel11-Dec-02 17:36
Shay Harel11-Dec-02 17:36 
GeneralRe: Copying CString to char* Pin
Like2Byte12-Dec-02 3:04
Like2Byte12-Dec-02 3:04 
GeneralHandling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 7:13
DRHuff11-Dec-02 7:13 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
Joan M11-Dec-02 7:38
professionalJoan M11-Dec-02 7:38 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 7:52
DRHuff11-Dec-02 7:52 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
Alvaro Mendez11-Dec-02 8:28
Alvaro Mendez11-Dec-02 8:28 
GeneralRe: Handling Checkbox changes in CListCtrl Pin
DRHuff11-Dec-02 9:34
DRHuff11-Dec-02 9:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.