Click here to Skip to main content
15,911,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: ADO Connection Pin
Stu20-Sep-01 6:03
Stu20-Sep-01 6:03 
GeneralRe: ADO Connection Pin
Carlos Antollini20-Sep-01 6:18
Carlos Antollini20-Sep-01 6:18 
QuestionHow can I scroll a CFormView? Pin
Craig Miller19-Sep-01 6:27
Craig Miller19-Sep-01 6:27 
AnswerRe: How can I scroll a CFormView? Pin
Tomasz Sowinski19-Sep-01 6:53
Tomasz Sowinski19-Sep-01 6:53 
GeneralRe: How can I scroll a CFormView? Pin
Craig Miller19-Sep-01 7:04
Craig Miller19-Sep-01 7:04 
GeneralRe: How can I scroll a CFormView? Pin
Tomasz Sowinski19-Sep-01 7:15
Tomasz Sowinski19-Sep-01 7:15 
GeneralRe: How can I scroll a CFormView? Pin
Craig Miller19-Sep-01 9:54
Craig Miller19-Sep-01 9:54 
GeneralPostMessage... philosophy... Pin
Remi Morin19-Sep-01 6:10
Remi Morin19-Sep-01 6:10 
Hi, I have a Home-Made control who post a message. This control can be placed anywhere. All of this stuff run very well but something is not like I wan't it to be and it's the first time I use Message queuing
void MyHomeMadeControl::AMethod(void)
{
    
    PostMessage(GetParent(),
                (UINT)this,
                (long)&m_Var);

}

class CBoopView : public CView
{
//some stuff
MyHomeMadeControl m_Ctrl_1;
MyHomeMadeControl m_Ctrl_2;

//everything else
}
void CBoopView::OnZoomScroll(MyHomeMadeControl* WParam,MyHomeMadeParam* lParam)
{
    if(&m_Ctrl_1 == WParam)
    {
        //Here I know it's m_Ctrl_1
    }
    else
    {
        //Here m_Ctrl_2...
    }
}


I don't think it's a very good way to do so...
It is possible in my PostMessage to do something like
PostMessage(GetParent(),
            GetCurrentId(), //this return the Id of my CWnd (you know the UINT nID of the create function)
            (long)&m_Var);

so that way I will used Id number instead of pointers...

thanks

(by the way if there is a "standart way to identify the Object who Post the message tell me)

Remi Morin
Rmorin@Operamail.com
Remi.Morin@Lyrtech.com
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 7:05
Tomasz Sowinski19-Sep-01 7:05 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 7:44
Remi Morin19-Sep-01 7:44 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 8:09
Tomasz Sowinski19-Sep-01 8:09 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 9:02
Remi Morin19-Sep-01 9:02 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 9:15
Tomasz Sowinski19-Sep-01 9:15 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 9:57
Remi Morin19-Sep-01 9:57 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 10:20
Tomasz Sowinski19-Sep-01 10:20 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:27
suss19-Sep-01 5:27 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Remi Morin19-Sep-01 5:53
Remi Morin19-Sep-01 5:53 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:59
suss19-Sep-01 5:59 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Carlos Antollini19-Sep-01 5:58
Carlos Antollini19-Sep-01 5:58 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
19-Sep-01 6:04
suss19-Sep-01 6:04 
GeneralLoadString... Pin
19-Sep-01 5:05
suss19-Sep-01 5:05 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 6:04
mentorNot Active19-Sep-01 6:04 
GeneralRe: LoadString... Pin
19-Sep-01 8:06
suss19-Sep-01 8:06 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 9:59
mentorNot Active19-Sep-01 9:59 
GeneralRe: LoadString... Pin
Steen Krogsgaard19-Sep-01 23:39
Steen Krogsgaard19-Sep-01 23:39 

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.