Click here to Skip to main content
15,886,806 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm7-May-09 22:37
sashoalm7-May-09 22:37 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson7-May-09 22:42
professionalStuart Dootson7-May-09 22:42 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm8-May-09 0:34
sashoalm8-May-09 0:34 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson8-May-09 2:04
professionalStuart Dootson8-May-09 2:04 
GeneralRe: CInternetSession with Authentification Proxy Pin
sashoalm8-May-09 4:32
sashoalm8-May-09 4:32 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson8-May-09 4:47
professionalStuart Dootson8-May-09 4:47 
GeneralRe: CInternetSession with Authentification Proxy Pin
Stuart Dootson7-May-09 22:54
professionalStuart Dootson7-May-09 22:54 
Questioncapturing notify messages Pin
kitkat120127-May-09 6:00
kitkat120127-May-09 6:00 
ok, so i have a dialog, which i'll call CMainDlg.

CMainDlg has a regular CSplitterWnd with two columns.

the splitter has two CWnd derived objects in it, which i'll call CNewWnd



so here's how i created them:

(inside CMainDlg's onInitDialog)

CCreateContext* con = new CCreateContext();<br />
con->m_pNewViewClass = RUNTIME_CLASS(CNewWnd);<br />
<br />
splitter.CreateStatic( this, 1, 2, WS_VISIBLE);<br />
splitter.CreateView(0,0, con->m_pNewViewClass, CSize(200, 200), con);<br />
splitter.CreateView(0,1, con->m_pNewViewClass, CSize(200, 200), con);




that creates the splitters, and the stuff inside them, everything works perfectly, except for the fact that i can't seem to catch the messages from the CNewWnd using ON_NOTIFY


so the problem is, ON_NOTIFY requires the DlgCtrlID like this:
ON_NOTIFY(NM_CLICK, IDD_DLG, func)

but i dont have that value cause the CNewWnd objects are created dynamically



i tried using SetDlgCtrlID() on the CNewWnd objects but it seems to crash the splitter

i also tried sending custom ids using SendMessage but it's not getting caught

(inside CMainDlg)
ON_NOTIFY(NM_CLICK, 15, func)<br />
splitter.GetPane(0, 0)->m_customid = 15;


(inside CNewWnd)
GetOwner->SendMessage(WM_NOTIFY, (WPARAM) m_customid, (LPARAM)hdr);



any suggestions? thanks
AnswerRe: capturing notify messages Pin
led mike7-May-09 7:02
led mike7-May-09 7:02 
QuestionConfusion about object code generated? Pin
lionelcyril7-May-09 5:12
lionelcyril7-May-09 5:12 
AnswerRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:20
Eytukan7-May-09 5:20 
AnswerRe: Confusion about object code generated? Pin
«_Superman_»7-May-09 5:22
professional«_Superman_»7-May-09 5:22 
GeneralRe: Confusion about object code generated? Pin
Eytukan7-May-09 5:25
Eytukan7-May-09 5:25 
AnswerRe: Confusion about object code generated? Pin
CPallini7-May-09 7:00
mveCPallini7-May-09 7:00 
QuestionIWinHttpRequest get_ResponseStream and Bitmap FromStream [modified] Pin
J.B.7-May-09 4:54
J.B.7-May-09 4:54 
AnswerRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 7:28
professionalStuart Dootson7-May-09 7:28 
AnswerRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
J.B.7-May-09 20:58
J.B.7-May-09 20:58 
GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 21:47
professionalStuart Dootson7-May-09 21:47 
GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
J.B.7-May-09 22:50
J.B.7-May-09 22:50 
GeneralRe: IWinHttpRequest get_ResponseStream and Bitmap FromStream Pin
Stuart Dootson7-May-09 23:04
professionalStuart Dootson7-May-09 23:04 
Questionit`s so hard, pro please help me Pin
trongduy7-May-09 4:20
trongduy7-May-09 4:20 
AnswerRe: it`s so hard, pro please help me Pin
David Crow7-May-09 4:23
David Crow7-May-09 4:23 
Questionstopping an exe Pin
jimjim7337-May-09 4:20
jimjim7337-May-09 4:20 
AnswerRe: stopping an exe Pin
David Crow7-May-09 4:24
David Crow7-May-09 4:24 
GeneralRe: stopping an exe Pin
I am BATMAN7-May-09 7:10
I am BATMAN7-May-09 7:10 

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.