Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Input handle (Mouse)

1 view
Skip to first unread message

Anton Roth

unread,
Sep 19, 2008, 7:01:13 AM9/19/08
to
Hello, i got a question regarding this line of code (from DirectInput /
Mouse example):

hr = g_pMouse->SetCooperativeLevel( hDlg, dwCoopFlags );

the hDlg is a HWND associated with the window / form it was created in. Now
how do i get that handle in the simplesample code for example? Or can anyone
explain me how i create a directInputDevice for that window? I just dont get
it how it's done in that example, and pretty much all other programs use a
windows handle, no directInput :(

Anton Roth

unread,
Sep 19, 2008, 7:07:05 AM9/19/08
to
0 new messages