Click here to Skip to main content
15,912,756 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How do you Monitor a Windows Service? Pin
Blake Miller28-Jun-05 12:40
Blake Miller28-Jun-05 12:40 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 4:52
Rodney Sullivan29-Jun-05 4:52 
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 5:24
Blake Miller29-Jun-05 5:24 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 5:59
Rodney Sullivan29-Jun-05 5:59 
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 6:12
Blake Miller29-Jun-05 6:12 
GeneralRe: How do you Monitor a Windows Service? Pin
Rodney Sullivan29-Jun-05 7:31
Rodney Sullivan29-Jun-05 7:31 
GeneralRe: How do you Monitor a Windows Service? Pin
Blake Miller29-Jun-05 7:52
Blake Miller29-Jun-05 7:52 
GeneralSlider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 6:47
jerry1211a28-Jun-05 6:47 
I used the code below to create a slider control. I tried to put the code into another initialize function of my own but it wouldnt work. Can the code be put into another function?

What I really dont understand is why do I need to include:
CDialog::OnInitDialog()...to make the project run? Without it I get a run time error condition.

Jerry
Smile | :)



/////////////////////////////////////////////////////////////Create slider control here
BOOL dialogWnd::OnInitDialog()
{
CDialog::OnInitDialog();

CWnd* pWnd = GetDlgItem(IDC_SLIDER1);
CRect rect;
pWnd->GetWindowRect( &rect );
ScreenToClient( &rect );
m_Slider.Create( WS_VISIBLE|WS_CHILD|TBS_HORZ, rect, this, IDC_SLIDER1 );

return TRUE;
}
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
Trollslayer28-Jun-05 7:01
mentorTrollslayer28-Jun-05 7:01 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 7:09
David Crow28-Jun-05 7:09 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 7:30
jerry1211a28-Jun-05 7:30 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 7:41
David Crow28-Jun-05 7:41 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 8:12
jerry1211a28-Jun-05 8:12 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
David Crow28-Jun-05 8:20
David Crow28-Jun-05 8:20 
GeneralRe: Slider Control Why do I need CDialog::OnInitDialog(); Pin
jerry1211a28-Jun-05 8:24
jerry1211a28-Jun-05 8:24 
GeneralXMLDOMDocument across processes Pin
Alex_Y28-Jun-05 6:29
Alex_Y28-Jun-05 6:29 
GeneralRe: XMLDOMDocument across processes Pin
Alex_Y28-Jun-05 9:24
Alex_Y28-Jun-05 9:24 
Questionwinsock2? Pin
nellutla28-Jun-05 6:20
nellutla28-Jun-05 6:20 
AnswerRe: winsock2? Pin
Trollslayer28-Jun-05 6:39
mentorTrollslayer28-Jun-05 6:39 
Generalproblem with menu Pin
Junyor28-Jun-05 5:56
Junyor28-Jun-05 5:56 
GeneralRe: problem with menu Pin
David Crow28-Jun-05 6:01
David Crow28-Jun-05 6:01 
GeneralRe: problem with menu Pin
Junyor28-Jun-05 9:03
Junyor28-Jun-05 9:03 
GeneralRe: problem with menu Pin
David Crow28-Jun-05 9:13
David Crow28-Jun-05 9:13 
GeneralFind the right active window Pin
Member 110183628-Jun-05 5:26
Member 110183628-Jun-05 5:26 
GeneralRe: Find the right active window Pin
David Crow28-Jun-05 5:56
David Crow28-Jun-05 5:56 

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.