Click here to Skip to main content
15,900,686 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionInitializing Structure in a class Pin
vikas amin21-Dec-05 0:50
vikas amin21-Dec-05 0:50 
AnswerRe: Initializing Structure in a class Pin
Rage21-Dec-05 1:11
professionalRage21-Dec-05 1:11 
AnswerRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 1:13
Owner drawn21-Dec-05 1:13 
GeneralRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:03
toxcct21-Dec-05 2:03 
GeneralRe: Initializing Structure in a class Pin
Owner drawn21-Dec-05 19:44
Owner drawn21-Dec-05 19:44 
AnswerRe: Initializing Structure in a class Pin
Eytukan21-Dec-05 2:01
Eytukan21-Dec-05 2:01 
AnswerRe: Initializing Structure in a class Pin
toxcct21-Dec-05 2:13
toxcct21-Dec-05 2:13 
AnswerRe: Initializing Structure in a class Pin
krmed21-Dec-05 4:37
krmed21-Dec-05 4:37 
QuestionOffer user a list of choices from a command prompt Pin
KevinSheedy21-Dec-05 0:16
KevinSheedy21-Dec-05 0:16 
AnswerRe: Offer user a list of choices from a command prompt Pin
khan++21-Dec-05 3:48
khan++21-Dec-05 3:48 
GeneralRe: Offer user a list of choices from a command prompt Pin
KevinSheedy21-Dec-05 4:10
KevinSheedy21-Dec-05 4:10 
GeneralRe: Offer user a list of choices from a command prompt Pin
khan++21-Dec-05 4:27
khan++21-Dec-05 4:27 
GeneralRe: Offer user a list of choices from a command prompt Pin
RChin21-Dec-05 6:20
RChin21-Dec-05 6:20 
QuestionFindResource -Problem Pin
kotiramkoteswararao20-Dec-05 23:53
kotiramkoteswararao20-Dec-05 23:53 
AnswerRe: FindResource -Problem Pin
includeh1021-Dec-05 2:23
includeh1021-Dec-05 2:23 
QuestionHow can I add a status bar to a dialog..... Pin
Owner drawn20-Dec-05 23:53
Owner drawn20-Dec-05 23:53 
AnswerRe: How can I add a status bar to a dialog..... Pin
Owner drawn21-Dec-05 0:08
Owner drawn21-Dec-05 0:08 
AnswerRe: How can I add a status bar to a dialog..... Pin
Ward21-Dec-05 0:13
Ward21-Dec-05 0:13 
AnswerRe: How can I add a status bar to a dialog..... Pin
Rage21-Dec-05 1:12
professionalRage21-Dec-05 1:12 
AnswerThanks a lot guys Pin
Owner drawn21-Dec-05 1:56
Owner drawn21-Dec-05 1:56 
QuestionSubclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP20-Dec-05 23:51
WernerP20-Dec-05 23:51 
Hi,

(1) I have a CRszListCtrl : public CListCtrl

(2) which has a CustHeaderCtrl m_hdrCustom, where CustHeaderCtrl : public CHeaderCtrl

(3) CRszListCtrl has init() called from CDialog::OnInitDialog.

(4) This init() calls void CustHeaderCtrl::init(CListCtrl * const pList) with Argument this (i.e. self) to init its m_hdrCustom

(5) The code is

void CustHeaderCtrl::init(CListCtrl * const pList)<br />
{<br />
    m_pParentList = pList;<br />
    CHeaderCtrl * pHeader = m_pParentList->GetHeaderCtrl();<br />
    ASSERT( SubclassWindow(pHeader->GetSafeHwnd()) );<br />
}<br />


(6) To catch clicks on the header items I made handlers for WM_NOTIFY messages resent to the header by it's parent list which where routed via WM_NOTIFY_REFLECT macro or alternatively via OnChildNotify.

:(Both work fine but only in debug code!
Who can give a solution? Thank you!

regards Werner
AnswerRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
Rage21-Dec-05 1:14
professionalRage21-Dec-05 1:14 
GeneralRe: Subclassed MFC CHeaderCtrl does only receive WM_NOTIFY in Debug Pin
WernerP21-Dec-05 4:47
WernerP21-Dec-05 4:47 
QuestionMFC functions fail when called from exported function in DLL Pin
Mayank Ji20-Dec-05 23:32
Mayank Ji20-Dec-05 23:32 
AnswerRe: MFC functions fail when called from exported function in DLL Pin
krmed21-Dec-05 2:01
krmed21-Dec-05 2:01 

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.