Initial commit: ROW Client source code
Game client codebase including: - CharacterActionControl: Character and creature management - GlobalScript: Network, items, skills, quests, utilities - RYLClient: Main client application with GUI and event handlers - Engine: 3D rendering engine (RYLGL) - MemoryManager: Custom memory allocation - Library: Third-party dependencies (DirectX, boost, etc.) - Tools: Development utilities 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
BIN
Library/dxx8/samples/Multimedia/DirectInput/Mouse/directx.ico
Normal file
BIN
Library/dxx8/samples/Multimedia/DirectInput/Mouse/directx.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.1 KiB |
690
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.cpp
Normal file
690
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.cpp
Normal file
@@ -0,0 +1,690 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// File: Mouse.cpp
|
||||
//
|
||||
// Desc: The Mouse sample show how to use a DirectInput mouse device and
|
||||
// the differences between cooperative levels and data styles.
|
||||
//
|
||||
// Copyright (c) 1999-2001 Microsoft Corporation. All rights reserved.
|
||||
//-----------------------------------------------------------------------------
|
||||
#define STRICT
|
||||
#include <tchar.h>
|
||||
#include <windows.h>
|
||||
#include <basetsd.h>
|
||||
#include <dinput.h>
|
||||
#include <stdio.h>
|
||||
#include "resource.h"
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Function-prototypes
|
||||
//-----------------------------------------------------------------------------
|
||||
INT_PTR CALLBACK MainDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam );
|
||||
HRESULT OnInitDialog( HWND hDlg );
|
||||
VOID UpdateUI( HWND hDlg );
|
||||
HRESULT OnCreateDevice( HWND hDlg );
|
||||
HRESULT ReadImmediateData( HWND hDlg );
|
||||
HRESULT ReadBufferedData( HWND hDlg );
|
||||
VOID FreeDirectInput();
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Defines, constants, and global variables
|
||||
//-----------------------------------------------------------------------------
|
||||
#define SAFE_DELETE(p) { if(p) { delete (p); (p)=NULL; } }
|
||||
#define SAFE_RELEASE(p) { if(p) { (p)->Release(); (p)=NULL; } }
|
||||
|
||||
#define SAMPLE_BUFFER_SIZE 16 // arbitrary number of buffer elements
|
||||
LPDIRECTINPUT8 g_pDI = NULL;
|
||||
LPDIRECTINPUTDEVICE8 g_pMouse = NULL;
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: WinMain()
|
||||
// Desc: Entry point for the application. Since we use a simple dialog for
|
||||
// user interaction we don't need to pump messages.
|
||||
//-----------------------------------------------------------------------------
|
||||
int WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, int )
|
||||
{
|
||||
// Display the main dialog box.
|
||||
DialogBox( hInst, MAKEINTRESOURCE(IDD_MOUSE), NULL, MainDlgProc );
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: MainDlgProc()
|
||||
// Desc: Handles dialog messages
|
||||
//-----------------------------------------------------------------------------
|
||||
INT_PTR CALLBACK MainDlgProc( HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam )
|
||||
{
|
||||
switch( msg )
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
OnInitDialog( hDlg );
|
||||
break;
|
||||
|
||||
case WM_COMMAND:
|
||||
switch( LOWORD(wParam) )
|
||||
{
|
||||
case IDCANCEL:
|
||||
EndDialog( hDlg, 0 );
|
||||
break;
|
||||
|
||||
case IDC_EXCLUSIVE:
|
||||
case IDC_NONEXCLUSIVE:
|
||||
case IDC_FOREGROUND:
|
||||
case IDC_BACKGROUND:
|
||||
case IDC_IMMEDIATE:
|
||||
case IDC_BUFFERED:
|
||||
UpdateUI( hDlg );
|
||||
break;
|
||||
|
||||
case IDM_CREATEDEVICE:
|
||||
case IDM_RELEASEDEVICE:
|
||||
case IDC_CREATEDEVICE:
|
||||
if( NULL == g_pMouse )
|
||||
{
|
||||
if( FAILED( OnCreateDevice( hDlg ) ) )
|
||||
{
|
||||
MessageBox( hDlg, _T("CreateDevice() failed. ")
|
||||
_T("The sample will now exit. "),
|
||||
_T("Mouse"), MB_ICONERROR | MB_OK );
|
||||
FreeDirectInput();
|
||||
}
|
||||
|
||||
SetFocus( GetDlgItem( hDlg, IDC_CREATEDEVICE ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
FreeDirectInput();
|
||||
}
|
||||
|
||||
UpdateUI( hDlg );
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE; // Message not handled
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_ENTERMENULOOP:
|
||||
// Release the device, so if we are in exclusive mode the
|
||||
// cursor will reappear
|
||||
if( g_pMouse )
|
||||
{
|
||||
g_pMouse->Unacquire();
|
||||
KillTimer( hDlg, 0 ); // Stop timer, so device is not re-acquired
|
||||
SetDlgItemText( hDlg, IDC_DATA, TEXT("Unacquired") );
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_EXITMENULOOP:
|
||||
// Make sure the device is acquired when coming out of a menu loop
|
||||
if( g_pMouse )
|
||||
{
|
||||
g_pMouse->Acquire();
|
||||
SetTimer( hDlg, 0, 1000 / 12, NULL ); // Start timer again
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_ACTIVATE:
|
||||
if( WA_INACTIVE != wParam && g_pMouse )
|
||||
{
|
||||
// Make sure the device is acquired, if we are gaining focus.
|
||||
g_pMouse->Acquire();
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_TIMER:
|
||||
// Update the input device every timer message
|
||||
{
|
||||
BOOL bImmediate = ( IsDlgButtonChecked( hDlg, IDC_IMMEDIATE ) == BST_CHECKED );
|
||||
|
||||
if( bImmediate )
|
||||
{
|
||||
if( FAILED( ReadImmediateData( hDlg ) ) )
|
||||
{
|
||||
KillTimer( hDlg, 0 );
|
||||
MessageBox( NULL, _T("Error Reading Input State. ")
|
||||
_T("The sample will now exit. "),
|
||||
_T("Mouse"), MB_ICONERROR | MB_OK );
|
||||
EndDialog( hDlg, TRUE );
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if( FAILED( ReadBufferedData( hDlg ) ) )
|
||||
{
|
||||
KillTimer( hDlg, 0 );
|
||||
MessageBox( NULL, _T("Error Reading Input State. ")
|
||||
_T("The sample will now exit. "),
|
||||
_T("Mouse"), MB_ICONERROR | MB_OK );
|
||||
EndDialog( hDlg, TRUE );
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case WM_DESTROY:
|
||||
// Cleanup everything
|
||||
KillTimer( hDlg, 0 );
|
||||
FreeDirectInput();
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE; // Message not handled
|
||||
}
|
||||
|
||||
return TRUE; // Message handled
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: OnInitDialog()
|
||||
// Desc: Initialize the DirectInput variables.
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT OnInitDialog( HWND hDlg )
|
||||
{
|
||||
// Load the icon
|
||||
#ifdef _WIN64
|
||||
HINSTANCE hInst = (HINSTANCE) GetWindowLongPtr( hDlg, GWLP_HINSTANCE );
|
||||
#else
|
||||
HINSTANCE hInst = (HINSTANCE) GetWindowLong( hDlg, GWL_HINSTANCE );
|
||||
#endif
|
||||
HICON hIcon = LoadIcon( hInst, MAKEINTRESOURCE( IDI_MAIN ) );
|
||||
|
||||
// Set the icon for this dialog.
|
||||
PostMessage( hDlg, WM_SETICON, ICON_BIG, (LPARAM) hIcon ); // Set big icon
|
||||
PostMessage( hDlg, WM_SETICON, ICON_SMALL, (LPARAM) hIcon ); // Set small icon
|
||||
|
||||
// Check the 'exclusive', 'foreground', and 'immediate' buttons by default.
|
||||
CheckRadioButton( hDlg, IDC_EXCLUSIVE, IDC_NONEXCLUSIVE, IDC_EXCLUSIVE );
|
||||
CheckRadioButton( hDlg, IDC_FOREGROUND, IDC_BACKGROUND, IDC_FOREGROUND );
|
||||
CheckRadioButton( hDlg, IDC_IMMEDIATE, IDC_BUFFERED, IDC_IMMEDIATE );
|
||||
|
||||
UpdateUI( hDlg );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: UpdateUI()
|
||||
// Desc: Enables/disables the UI, and sets the dialog behavior text based on the UI
|
||||
//-----------------------------------------------------------------------------
|
||||
VOID UpdateUI( HWND hDlg )
|
||||
{
|
||||
TCHAR strExcepted[2048];
|
||||
BOOL bExclusive;
|
||||
BOOL bForeground;
|
||||
BOOL bImmediate;
|
||||
|
||||
// Detrimine where the buffer would like to be allocated
|
||||
bExclusive = ( IsDlgButtonChecked( hDlg, IDC_EXCLUSIVE ) == BST_CHECKED );
|
||||
bForeground = ( IsDlgButtonChecked( hDlg, IDC_FOREGROUND ) == BST_CHECKED );
|
||||
bImmediate = ( IsDlgButtonChecked( hDlg, IDC_IMMEDIATE ) == BST_CHECKED );
|
||||
|
||||
if( g_pMouse )
|
||||
{
|
||||
SetDlgItemText( hDlg, IDC_CREATEDEVICE, TEXT("&Release Device") );
|
||||
EnableMenuItem( GetMenu( hDlg ), IDM_RELEASEDEVICE, MF_ENABLED );
|
||||
EnableMenuItem( GetMenu( hDlg ), IDM_CREATEDEVICE, MF_GRAYED );
|
||||
SetDlgItemText( hDlg, IDC_DATA, TEXT("") );
|
||||
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_EXCLUSIVE ), FALSE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_NONEXCLUSIVE ), FALSE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_FOREGROUND ), FALSE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_BACKGROUND ), FALSE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_IMMEDIATE ), FALSE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_BUFFERED ), FALSE );
|
||||
|
||||
if( bExclusive )
|
||||
SetDlgItemText( hDlg, IDC_HELP_TEXT,
|
||||
TEXT("Press Enter to release the mouse device, ") \
|
||||
TEXT("and display the cursor again.") );
|
||||
}
|
||||
else
|
||||
{
|
||||
SetDlgItemText( hDlg, IDC_CREATEDEVICE, TEXT("&Create Device") );
|
||||
EnableMenuItem( GetMenu( hDlg ), IDM_RELEASEDEVICE, MF_GRAYED );
|
||||
EnableMenuItem( GetMenu( hDlg ), IDM_CREATEDEVICE, MF_ENABLED );
|
||||
SetDlgItemText( hDlg, IDC_DATA, TEXT("Device not created. Choose settings and click 'Create Device' then move mouse to see results") );
|
||||
SetDlgItemText( hDlg, IDC_HELP_TEXT, TEXT("") );
|
||||
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_EXCLUSIVE ), TRUE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_NONEXCLUSIVE ), TRUE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_FOREGROUND ), TRUE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_BACKGROUND ), TRUE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_IMMEDIATE ), TRUE );
|
||||
EnableWindow( GetDlgItem( hDlg, IDC_BUFFERED ), TRUE );
|
||||
}
|
||||
|
||||
// Figure what the user should expect based on the dialog choice
|
||||
if( !bForeground && bExclusive )
|
||||
{
|
||||
_tcscpy( strExcepted, TEXT("For security reasons, background exclusive ") \
|
||||
TEXT("mouse access is not allowed.\n\n") );
|
||||
}
|
||||
else
|
||||
{
|
||||
if( bForeground )
|
||||
{
|
||||
_tcscpy( strExcepted, TEXT("Foreground cooperative level means that the ") \
|
||||
TEXT("application has access to data only when in the ") \
|
||||
TEXT("foreground or, in other words, has the input focus. ") \
|
||||
TEXT("If the application moves to the background, ") \
|
||||
TEXT("the device is automatically unacquired, or made ") \
|
||||
TEXT("unavailable.\n\n") );
|
||||
}
|
||||
else
|
||||
{
|
||||
_tcscpy( strExcepted, TEXT("Background cooperative level really means ") \
|
||||
TEXT("foreground and background. A device with a ") \
|
||||
TEXT("background cooperative level can be acquired ") \
|
||||
TEXT("and used by an application at any time.\n\n") );
|
||||
}
|
||||
|
||||
if( bExclusive )
|
||||
{
|
||||
_tcscat( strExcepted, TEXT("Exclusive mode prevents other applications from ") \
|
||||
TEXT("also acquiring the device exclusively. The fact ") \
|
||||
TEXT("that your application is using a device at the ") \
|
||||
TEXT("exclusive level does not mean that other ") \
|
||||
TEXT("applications cannot get data from the device. ") \
|
||||
TEXT("Windows itself requires exclusive access to the ") \
|
||||
TEXT("mouse because mouse events such as a click on ") \
|
||||
TEXT("an inactive window could force an application ") \
|
||||
TEXT("to unacquire the device, with potentially harmful ") \
|
||||
TEXT("results, such as a loss of data from the input ") \
|
||||
TEXT("buffer. Therefore, when an application has ") \
|
||||
TEXT("exclusive access to the mouse, Windows is not ") \
|
||||
TEXT("allowed any access at all. No mouse messages are ") \
|
||||
TEXT("generated. A further side effect is that the ") \
|
||||
TEXT("cursor disappears. When accessing the menu, the sample ") \
|
||||
TEXT("releases the mouse so the mouse is displayed again.\n\n"));
|
||||
}
|
||||
else
|
||||
{
|
||||
_tcscat( strExcepted, TEXT("Nonexclusive mode means that other applications ") \
|
||||
TEXT("can acquire device in exclusive or nonexclusive mode.\n\n"));
|
||||
}
|
||||
|
||||
if( bImmediate )
|
||||
{
|
||||
_tcscat( strExcepted, TEXT("Immediate data is a snapshot of the current ") \
|
||||
TEXT("state of a device. It provides no data about ") \
|
||||
TEXT("what has happened with the device since the ") \
|
||||
TEXT("last call, apart from implicit information that ") \
|
||||
TEXT("you can derive by comparing the current state with ") \
|
||||
TEXT("the last one. Events in between calls are lost.\n\n") );
|
||||
}
|
||||
else
|
||||
{
|
||||
_tcscat( strExcepted, TEXT("Buffered data is a record of events that are stored ") \
|
||||
TEXT("until an application retrieves them. With buffered ") \
|
||||
TEXT("data, events are stored until you are ready to deal ") \
|
||||
TEXT("with them. If the buffer overflows, new data is lost.\n\n") );
|
||||
}
|
||||
|
||||
_tcscat( strExcepted, TEXT("The sample will read the mouse 12 times a second. ") \
|
||||
TEXT("Typically an application would poll the mouse ") \
|
||||
TEXT("much faster than this, but this slow rate is simply ") \
|
||||
TEXT("for the purposes of demonstration.") );
|
||||
}
|
||||
|
||||
// Tell the user what to expect
|
||||
SetDlgItemText( hDlg, IDC_BEHAVIOR, strExcepted );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: OnCreateDevice()
|
||||
// Desc: Setups a the mouse device using the flags from the dialog.
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT OnCreateDevice( HWND hDlg )
|
||||
{
|
||||
HRESULT hr;
|
||||
BOOL bExclusive;
|
||||
BOOL bForeground;
|
||||
BOOL bImmediate;
|
||||
DWORD dwCoopFlags;
|
||||
|
||||
// Cleanup any previous call first
|
||||
KillTimer( hDlg, 0 );
|
||||
FreeDirectInput();
|
||||
|
||||
// Detrimine where the buffer would like to be allocated
|
||||
bExclusive = ( IsDlgButtonChecked( hDlg, IDC_EXCLUSIVE ) == BST_CHECKED );
|
||||
bForeground = ( IsDlgButtonChecked( hDlg, IDC_FOREGROUND ) == BST_CHECKED );
|
||||
bImmediate = ( IsDlgButtonChecked( hDlg, IDC_IMMEDIATE ) == BST_CHECKED );
|
||||
|
||||
if( bExclusive )
|
||||
dwCoopFlags = DISCL_EXCLUSIVE;
|
||||
else
|
||||
dwCoopFlags = DISCL_NONEXCLUSIVE;
|
||||
|
||||
if( bForeground )
|
||||
dwCoopFlags |= DISCL_FOREGROUND;
|
||||
else
|
||||
dwCoopFlags |= DISCL_BACKGROUND;
|
||||
|
||||
// Create a DInput object
|
||||
if( FAILED( hr = DirectInput8Create( GetModuleHandle(NULL), DIRECTINPUT_VERSION,
|
||||
IID_IDirectInput8, (VOID**)&g_pDI, NULL ) ) )
|
||||
return hr;
|
||||
|
||||
// Obtain an interface to the system mouse device.
|
||||
if( FAILED( hr = g_pDI->CreateDevice( GUID_SysMouse, &g_pMouse, NULL ) ) )
|
||||
return hr;
|
||||
|
||||
// Set the data format to "mouse format" - a predefined data format
|
||||
//
|
||||
// A data format specifies which controls on a device we
|
||||
// are interested in, and how they should be reported.
|
||||
//
|
||||
// This tells DirectInput that we will be passing a
|
||||
// DIMOUSESTATE2 structure to IDirectInputDevice::GetDeviceState.
|
||||
if( FAILED( hr = g_pMouse->SetDataFormat( &c_dfDIMouse2 ) ) )
|
||||
return hr;
|
||||
|
||||
// Set the cooperativity level to let DirectInput know how
|
||||
// this device should interact with the system and with other
|
||||
// DirectInput applications.
|
||||
hr = g_pMouse->SetCooperativeLevel( hDlg, dwCoopFlags );
|
||||
if( hr == DIERR_UNSUPPORTED && !bForeground && bExclusive )
|
||||
{
|
||||
FreeDirectInput();
|
||||
MessageBox( hDlg, _T("SetCooperativeLevel() returned DIERR_UNSUPPORTED.\n")
|
||||
_T("For security reasons, background exclusive mouse\n")
|
||||
_T("access is not allowed."),
|
||||
_T("Mouse"), MB_OK );
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if( FAILED(hr) )
|
||||
return hr;
|
||||
|
||||
if( !bImmediate )
|
||||
{
|
||||
// IMPORTANT STEP TO USE BUFFERED DEVICE DATA!
|
||||
//
|
||||
// DirectInput uses unbuffered I/O (buffer size = 0) by default.
|
||||
// If you want to read buffered data, you need to set a nonzero
|
||||
// buffer size.
|
||||
//
|
||||
// Set the buffer size to SAMPLE_BUFFER_SIZE (defined above) elements.
|
||||
//
|
||||
// The buffer size is a DWORD property associated with the device.
|
||||
DIPROPDWORD dipdw;
|
||||
dipdw.diph.dwSize = sizeof(DIPROPDWORD);
|
||||
dipdw.diph.dwHeaderSize = sizeof(DIPROPHEADER);
|
||||
dipdw.diph.dwObj = 0;
|
||||
dipdw.diph.dwHow = DIPH_DEVICE;
|
||||
dipdw.dwData = SAMPLE_BUFFER_SIZE; // Arbitary buffer size
|
||||
|
||||
if( FAILED( hr = g_pMouse->SetProperty( DIPROP_BUFFERSIZE, &dipdw.diph ) ) )
|
||||
return hr;
|
||||
}
|
||||
|
||||
// Acquire the newly created device
|
||||
g_pMouse->Acquire();
|
||||
|
||||
// Set a timer to go off 12 times a second, to read input
|
||||
// Note: Typically an application would poll the mouse
|
||||
// much faster than this, but this slow rate is simply
|
||||
// for the purposes of demonstration
|
||||
SetTimer( hDlg, 0, 1000 / 12, NULL );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: ReadImmediateData()
|
||||
// Desc: Read the input device's state when in immediate mode and display it.
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT ReadImmediateData( HWND hDlg )
|
||||
{
|
||||
HRESULT hr;
|
||||
TCHAR strNewText[128] = TEXT(""); // Output string
|
||||
DIMOUSESTATE2 dims2; // DirectInput mouse state structure
|
||||
|
||||
if( NULL == g_pMouse )
|
||||
return S_OK;
|
||||
|
||||
// Get the input's device state, and put the state in dims
|
||||
ZeroMemory( &dims2, sizeof(dims2) );
|
||||
hr = g_pMouse->GetDeviceState( sizeof(DIMOUSESTATE2), &dims2 );
|
||||
if( FAILED(hr) )
|
||||
{
|
||||
// DirectInput may be telling us that the input stream has been
|
||||
// interrupted. We aren't tracking any state between polls, so
|
||||
// we don't have any special reset that needs to be done.
|
||||
// We just re-acquire and try again.
|
||||
|
||||
// If input is lost then acquire and keep trying
|
||||
hr = g_pMouse->Acquire();
|
||||
while( hr == DIERR_INPUTLOST )
|
||||
hr = g_pMouse->Acquire();
|
||||
|
||||
// Update the dialog text
|
||||
if( hr == DIERR_OTHERAPPHASPRIO ||
|
||||
hr == DIERR_NOTACQUIRED )
|
||||
SetDlgItemText( hDlg, IDC_DATA, TEXT("Unacquired") );
|
||||
|
||||
// hr may be DIERR_OTHERAPPHASPRIO or other errors. This
|
||||
// may occur when the app is minimized or in the process of
|
||||
// switching, so just try again later
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
// The dims structure now has the state of the mouse, so
|
||||
// display mouse coordinates (x, y, z) and buttons.
|
||||
_stprintf( strNewText, TEXT("(X=% 3.3d, Y=% 3.3d, Z=% 3.3d) B0=%c B1=%c B2=%c B3=%c B4=%c B5=%c B6=%c B7=%c"),
|
||||
dims2.lX, dims2.lY, dims2.lZ,
|
||||
(dims2.rgbButtons[0] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[1] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[2] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[3] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[4] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[5] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[6] & 0x80) ? '1' : '0',
|
||||
(dims2.rgbButtons[7] & 0x80) ? '1' : '0');
|
||||
|
||||
// Get the old text in the text box
|
||||
TCHAR strOldText[128];
|
||||
GetDlgItemText( hDlg, IDC_DATA, strOldText, 127 );
|
||||
|
||||
// If nothing changed then don't repaint - avoid flicker
|
||||
if( 0 != lstrcmp( strOldText, strNewText ) )
|
||||
SetDlgItemText( hDlg, IDC_DATA, strNewText );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: ReadBufferedData()
|
||||
// Desc: Read the input device's state when in buffered mode and display it.
|
||||
//-----------------------------------------------------------------------------
|
||||
HRESULT ReadBufferedData( HWND hDlg )
|
||||
{
|
||||
TCHAR strNewText[128] = TEXT("");
|
||||
DIDEVICEOBJECTDATA didod[ SAMPLE_BUFFER_SIZE ]; // Receives buffered data
|
||||
DWORD dwElements;
|
||||
DWORD i;
|
||||
HRESULT hr;
|
||||
|
||||
if( NULL == g_pMouse )
|
||||
return S_OK;
|
||||
|
||||
dwElements = SAMPLE_BUFFER_SIZE;
|
||||
hr = g_pMouse->GetDeviceData( sizeof(DIDEVICEOBJECTDATA),
|
||||
didod, &dwElements, 0 );
|
||||
if( hr != DI_OK )
|
||||
{
|
||||
// We got an error or we got DI_BUFFEROVERFLOW.
|
||||
//
|
||||
// Either way, it means that continuous contact with the
|
||||
// device has been lost, either due to an external
|
||||
// interruption, or because the buffer overflowed
|
||||
// and some events were lost.
|
||||
//
|
||||
// Consequently, if a button was pressed at the time
|
||||
// the buffer overflowed or the connection was broken,
|
||||
// the corresponding "up" message might have been lost.
|
||||
//
|
||||
// But since our simple sample doesn't actually have
|
||||
// any state associated with button up or down events,
|
||||
// there is no state to reset. (In a real game, ignoring
|
||||
// the buffer overflow would result in the game thinking
|
||||
// a key was held down when in fact it isn't; it's just
|
||||
// that the "up" event got lost because the buffer
|
||||
// overflowed.)
|
||||
//
|
||||
// If we want to be cleverer, we could do a
|
||||
// GetDeviceState() and compare the current state
|
||||
// against the state we think the device is in,
|
||||
// and process all the states that are currently
|
||||
// different from our private state.
|
||||
hr = g_pMouse->Acquire();
|
||||
while( hr == DIERR_INPUTLOST )
|
||||
hr = g_pMouse->Acquire();
|
||||
|
||||
// Update the dialog text
|
||||
if( hr == DIERR_OTHERAPPHASPRIO ||
|
||||
hr == DIERR_NOTACQUIRED )
|
||||
SetDlgItemText( hDlg, IDC_DATA, TEXT("Unacquired") );
|
||||
|
||||
// hr may be DIERR_OTHERAPPHASPRIO or other errors. This
|
||||
// may occur when the app is minimized or in the process of
|
||||
// switching, so just try again later
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
if( FAILED(hr) )
|
||||
return hr;
|
||||
|
||||
// Study each of the buffer elements and process them.
|
||||
//
|
||||
// Since we really don't do anything, our "processing"
|
||||
// consists merely of squirting the name into our
|
||||
// local buffer.
|
||||
for( i = 0; i < dwElements; i++ )
|
||||
{
|
||||
// this will display then scan code of the key
|
||||
// plus a 'D' - meaning the key was pressed
|
||||
// or a 'U' - meaning the key was released
|
||||
switch( didod[ i ].dwOfs )
|
||||
{
|
||||
case DIMOFS_BUTTON0:
|
||||
_tcscat( strNewText, TEXT("B0") );
|
||||
break;
|
||||
|
||||
case DIMOFS_BUTTON1:
|
||||
_tcscat( strNewText, TEXT("B1") );
|
||||
break;
|
||||
|
||||
case DIMOFS_BUTTON2:
|
||||
_tcscat( strNewText, TEXT("B2") );
|
||||
break;
|
||||
|
||||
case DIMOFS_BUTTON3:
|
||||
_tcscat( strNewText, TEXT("B3") );
|
||||
break;
|
||||
|
||||
case DIMOFS_X:
|
||||
_tcscat( strNewText, TEXT("X") );
|
||||
break;
|
||||
|
||||
case DIMOFS_Y:
|
||||
_tcscat( strNewText, TEXT("Y") );
|
||||
break;
|
||||
|
||||
case DIMOFS_Z:
|
||||
_tcscat( strNewText, TEXT("Z") );
|
||||
break;
|
||||
|
||||
default:
|
||||
_tcscat( strNewText, TEXT("") );
|
||||
}
|
||||
|
||||
switch( didod[ i ].dwOfs )
|
||||
{
|
||||
case DIMOFS_BUTTON0:
|
||||
case DIMOFS_BUTTON1:
|
||||
case DIMOFS_BUTTON2:
|
||||
case DIMOFS_BUTTON3:
|
||||
if( didod[ i ].dwData & 0x80 )
|
||||
_tcscat( strNewText, TEXT("U ") );
|
||||
else
|
||||
_tcscat( strNewText, TEXT("D ") );
|
||||
break;
|
||||
|
||||
case DIMOFS_X:
|
||||
case DIMOFS_Y:
|
||||
case DIMOFS_Z:
|
||||
{
|
||||
TCHAR strCoordValue[20];
|
||||
wsprintf( strCoordValue, TEXT("%d "), didod[ i ].dwData );
|
||||
_tcscat( strNewText, strCoordValue );
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Get the old text in the text box
|
||||
TCHAR strOldText[128];
|
||||
GetDlgItemText( hDlg, IDC_DATA, strOldText, 127 );
|
||||
|
||||
// If nothing changed then don't repaint - avoid flicker
|
||||
if( 0 != lstrcmp( strOldText, strNewText ) )
|
||||
SetDlgItemText( hDlg, IDC_DATA, strNewText );
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Name: FreeDirectInput()
|
||||
// Desc: Initialize the DirectInput variables.
|
||||
//-----------------------------------------------------------------------------
|
||||
VOID FreeDirectInput()
|
||||
{
|
||||
// Unacquire the device one last time just in case
|
||||
// the app tried to exit while the device is still acquired.
|
||||
if( g_pMouse )
|
||||
g_pMouse->Unacquire();
|
||||
|
||||
// Release any DirectInput objects.
|
||||
SAFE_RELEASE( g_pMouse );
|
||||
SAFE_RELEASE( g_pDI );
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
169
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.dsp
Normal file
169
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.dsp
Normal file
@@ -0,0 +1,169 @@
|
||||
# Microsoft Developer Studio Project File - Name="mouse" - Package Owner=<4>
|
||||
# Microsoft Developer Studio Generated Build File, Format Version 6.00
|
||||
# ** DO NOT EDIT **
|
||||
|
||||
# TARGTYPE "Win32 (x86) Application" 0x0101
|
||||
|
||||
CFG=mouse - Win32 Debug
|
||||
!MESSAGE This is not a valid makefile. To build this project using NMAKE,
|
||||
!MESSAGE use the Export Makefile command and run
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "mouse.mak".
|
||||
!MESSAGE
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "mouse.mak" CFG="mouse - Win32 Debug Unicode"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "mouse - Win32 Debug Unicode" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Release Unicode" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
|
||||
# Begin Project
|
||||
# PROP AllowPerConfigDependencies 0
|
||||
# PROP Scc_ProjName ""
|
||||
# PROP Scc_LocalPath ""
|
||||
CPP=cl.exe
|
||||
MTL=midl.exe
|
||||
RSC=rc.exe
|
||||
|
||||
!IF "$(CFG)" == "mouse - Win32 Release"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Release"
|
||||
# PROP BASE Intermediate_Dir "Release"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Release"
|
||||
# PROP Intermediate_Dir "Release"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /machine:I386 /stack:0x200000,0x200000
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Debug"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Debug"
|
||||
# PROP BASE Intermediate_Dir "Debug"
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Debug"
|
||||
# PROP Intermediate_Dir "Debug"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /stack:0x200000,0x200000
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Debug Unicode"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 1
|
||||
# PROP BASE Output_Dir "Win32_Debug_Unicode"
|
||||
# PROP BASE Intermediate_Dir "Win32_Debug_Unicode"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 1
|
||||
# PROP Output_Dir "Win32_Debug_Unicode"
|
||||
# PROP Intermediate_Dir "Win32_Debug_Unicode"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /Gm /GX /Zi /Od /D "_MBCS" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /D "_UNICODE" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "_DEBUG"
|
||||
# ADD RSC /l 0x409 /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept
|
||||
# ADD LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /debug /machine:I386 /pdbtype:sept /stack:0x200000,0x200000
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Release Unicode"
|
||||
|
||||
# PROP BASE Use_MFC 0
|
||||
# PROP BASE Use_Debug_Libraries 0
|
||||
# PROP BASE Output_Dir "Win32_Release_Unicode"
|
||||
# PROP BASE Intermediate_Dir "Win32_Release_Unicode"
|
||||
# PROP BASE Ignore_Export_Lib 0
|
||||
# PROP BASE Target_Dir ""
|
||||
# PROP Use_MFC 0
|
||||
# PROP Use_Debug_Libraries 0
|
||||
# PROP Output_Dir "Win32_Release_Unicode"
|
||||
# PROP Intermediate_Dir "Win32_Release_Unicode"
|
||||
# PROP Ignore_Export_Lib 0
|
||||
# PROP Target_Dir ""
|
||||
# ADD BASE CPP /nologo /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /YX /FD /c
|
||||
# ADD CPP /nologo /W3 /GX /O2 /D "_MBCS" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "UNICODE" /D "_UNICODE" /YX /FD /c
|
||||
# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
# ADD BASE RSC /l 0x409 /d "NDEBUG"
|
||||
# ADD RSC /l 0x409 /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
# ADD BASE BSC32 /nologo
|
||||
# ADD BSC32 /nologo
|
||||
LINK32=link.exe
|
||||
# ADD BASE LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /machine:I386
|
||||
# ADD LINK32 dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /machine:I386 /stack:0x200000,0x200000
|
||||
|
||||
!ENDIF
|
||||
|
||||
# Begin Target
|
||||
|
||||
# Name "mouse - Win32 Release"
|
||||
# Name "mouse - Win32 Debug"
|
||||
# Name "mouse - Win32 Debug Unicode"
|
||||
# Name "mouse - Win32 Release Unicode"
|
||||
# Begin Group "Resource Files"
|
||||
|
||||
# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe"
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\directx.ico
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\mouse.rc
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\resource.h
|
||||
# End Source File
|
||||
# End Group
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=.\mouse.cpp
|
||||
# End Source File
|
||||
# End Target
|
||||
# End Project
|
||||
29
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.dsw
Normal file
29
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.dsw
Normal file
@@ -0,0 +1,29 @@
|
||||
Microsoft Developer Studio Workspace File, Format Version 6.00
|
||||
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
|
||||
|
||||
###############################################################################
|
||||
|
||||
Project: "mouse"=.\mouse.dsp - Package Owner=<4>
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<4>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
Global:
|
||||
|
||||
Package=<5>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
Package=<3>
|
||||
{{{
|
||||
}}}
|
||||
|
||||
###############################################################################
|
||||
|
||||
350
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.mak
Normal file
350
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.mak
Normal file
@@ -0,0 +1,350 @@
|
||||
# Microsoft Developer Studio Generated NMAKE File, Based on mouse.dsp
|
||||
!IF "$(CFG)" == ""
|
||||
CFG=mouse - Win32 Debug Unicode
|
||||
!MESSAGE No configuration specified. Defaulting to mouse - Win32 Debug Unicode.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" != "mouse - Win32 Release" && "$(CFG)" != "mouse - Win32 Debug" && "$(CFG)" != "mouse - Win32 Debug Unicode" && "$(CFG)" != "mouse - Win32 Release Unicode"
|
||||
!MESSAGE Invalid configuration "$(CFG)" specified.
|
||||
!MESSAGE You can specify a configuration when running NMAKE
|
||||
!MESSAGE by defining the macro CFG on the command line. For example:
|
||||
!MESSAGE
|
||||
!MESSAGE NMAKE /f "mouse.mak" CFG="mouse - Win32 Debug Unicode"
|
||||
!MESSAGE
|
||||
!MESSAGE Possible choices for configuration are:
|
||||
!MESSAGE
|
||||
!MESSAGE "mouse - Win32 Release" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Debug" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Debug Unicode" (based on "Win32 (x86) Application")
|
||||
!MESSAGE "mouse - Win32 Release Unicode" (based on "Win32 (x86) Application")
|
||||
!MESSAGE
|
||||
!ERROR An invalid configuration is specified.
|
||||
!ENDIF
|
||||
|
||||
!IF "$(OS)" == "Windows_NT"
|
||||
NULL=
|
||||
!ELSE
|
||||
NULL=nul
|
||||
!ENDIF
|
||||
|
||||
!IF "$(CFG)" == "mouse - Win32 Release"
|
||||
|
||||
OUTDIR=.\Release
|
||||
INTDIR=.\Release
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Release
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\mouse.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\mouse.obj"
|
||||
-@erase "$(INTDIR)\mouse.res"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(OUTDIR)\mouse.exe"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\mouse.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\mouse.res" /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\mouse.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\mouse.pdb" /machine:I386 /out:"$(OUTDIR)\mouse.exe" /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\mouse.obj" \
|
||||
"$(INTDIR)\mouse.res"
|
||||
|
||||
"$(OUTDIR)\mouse.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Debug"
|
||||
|
||||
OUTDIR=.\Debug
|
||||
INTDIR=.\Debug
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Debug
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\mouse.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\mouse.obj"
|
||||
-@erase "$(INTDIR)\mouse.res"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(INTDIR)\vc60.pdb"
|
||||
-@erase "$(OUTDIR)\mouse.exe"
|
||||
-@erase "$(OUTDIR)\mouse.ilk"
|
||||
-@erase "$(OUTDIR)\mouse.pdb"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /Fp"$(INTDIR)\mouse.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\mouse.res" /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\mouse.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\mouse.pdb" /debug /machine:I386 /out:"$(OUTDIR)\mouse.exe" /pdbtype:sept /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\mouse.obj" \
|
||||
"$(INTDIR)\mouse.res"
|
||||
|
||||
"$(OUTDIR)\mouse.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Debug Unicode"
|
||||
|
||||
OUTDIR=.\Win32_Debug_Unicode
|
||||
INTDIR=.\Win32_Debug_Unicode
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Win32_Debug_Unicode
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\mouse.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\mouse.obj"
|
||||
-@erase "$(INTDIR)\mouse.res"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(INTDIR)\vc60.pdb"
|
||||
-@erase "$(OUTDIR)\mouse.exe"
|
||||
-@erase "$(OUTDIR)\mouse.ilk"
|
||||
-@erase "$(OUTDIR)\mouse.pdb"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /MLd /W3 /Gm /GX /Zi /Od /D "_MBCS" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "UNICODE" /D "_UNICODE" /Fp"$(INTDIR)\mouse.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "_DEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\mouse.res" /d "_DEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\mouse.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:yes /pdb:"$(OUTDIR)\mouse.pdb" /debug /machine:I386 /out:"$(OUTDIR)\mouse.exe" /pdbtype:sept /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\mouse.obj" \
|
||||
"$(INTDIR)\mouse.res"
|
||||
|
||||
"$(OUTDIR)\mouse.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ELSEIF "$(CFG)" == "mouse - Win32 Release Unicode"
|
||||
|
||||
OUTDIR=.\Win32_Release_Unicode
|
||||
INTDIR=.\Win32_Release_Unicode
|
||||
# Begin Custom Macros
|
||||
OutDir=.\Win32_Release_Unicode
|
||||
# End Custom Macros
|
||||
|
||||
ALL : "$(OUTDIR)\mouse.exe"
|
||||
|
||||
|
||||
CLEAN :
|
||||
-@erase "$(INTDIR)\mouse.obj"
|
||||
-@erase "$(INTDIR)\mouse.res"
|
||||
-@erase "$(INTDIR)\vc60.idb"
|
||||
-@erase "$(OUTDIR)\mouse.exe"
|
||||
|
||||
"$(OUTDIR)" :
|
||||
if not exist "$(OUTDIR)/$(NULL)" mkdir "$(OUTDIR)"
|
||||
|
||||
CPP=cl.exe
|
||||
CPP_PROJ=/nologo /ML /W3 /GX /O2 /D "_MBCS" /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "UNICODE" /D "_UNICODE" /Fp"$(INTDIR)\mouse.pch" /YX /Fo"$(INTDIR)\\" /Fd"$(INTDIR)\\" /FD /c
|
||||
|
||||
.c{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.obj::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.c{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cpp{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
.cxx{$(INTDIR)}.sbr::
|
||||
$(CPP) @<<
|
||||
$(CPP_PROJ) $<
|
||||
<<
|
||||
|
||||
MTL=midl.exe
|
||||
MTL_PROJ=/nologo /D "NDEBUG" /mktyplib203 /win32
|
||||
RSC=rc.exe
|
||||
RSC_PROJ=/l 0x409 /fo"$(INTDIR)\mouse.res" /d "NDEBUG"
|
||||
BSC32=bscmake.exe
|
||||
BSC32_FLAGS=/nologo /o"$(OUTDIR)\mouse.bsc"
|
||||
BSC32_SBRS= \
|
||||
|
||||
LINK32=link.exe
|
||||
LINK32_FLAGS=dxguid.lib dxerr8.lib dinput8.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib uuid.lib /nologo /subsystem:windows /incremental:no /pdb:"$(OUTDIR)\mouse.pdb" /machine:I386 /out:"$(OUTDIR)\mouse.exe" /stack:0x200000,0x200000
|
||||
LINK32_OBJS= \
|
||||
"$(INTDIR)\mouse.obj" \
|
||||
"$(INTDIR)\mouse.res"
|
||||
|
||||
"$(OUTDIR)\mouse.exe" : "$(OUTDIR)" $(DEF_FILE) $(LINK32_OBJS)
|
||||
$(LINK32) @<<
|
||||
$(LINK32_FLAGS) $(LINK32_OBJS)
|
||||
<<
|
||||
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(NO_EXTERNAL_DEPS)" != "1"
|
||||
!IF EXISTS("mouse.dep")
|
||||
!INCLUDE "mouse.dep"
|
||||
!ELSE
|
||||
!MESSAGE Warning: cannot find "mouse.dep"
|
||||
!ENDIF
|
||||
!ENDIF
|
||||
|
||||
|
||||
!IF "$(CFG)" == "mouse - Win32 Release" || "$(CFG)" == "mouse - Win32 Debug" || "$(CFG)" == "mouse - Win32 Debug Unicode" || "$(CFG)" == "mouse - Win32 Release Unicode"
|
||||
SOURCE=.\mouse.rc
|
||||
|
||||
"$(INTDIR)\mouse.res" : $(SOURCE) "$(INTDIR)"
|
||||
$(RSC) $(RSC_PROJ) $(SOURCE)
|
||||
|
||||
|
||||
SOURCE=.\mouse.cpp
|
||||
|
||||
"$(INTDIR)\mouse.obj" : $(SOURCE) "$(INTDIR)"
|
||||
|
||||
|
||||
|
||||
!ENDIF
|
||||
|
||||
166
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.rc
Normal file
166
Library/dxx8/samples/Multimedia/DirectInput/Mouse/mouse.rc
Normal file
@@ -0,0 +1,166 @@
|
||||
//Microsoft Developer Studio generated resource script.
|
||||
//
|
||||
#include "resource.h"
|
||||
|
||||
#define APSTUDIO_READONLY_SYMBOLS
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 2 resource.
|
||||
//
|
||||
#include "afxres.h"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#undef APSTUDIO_READONLY_SYMBOLS
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// English (U.S.) resources
|
||||
|
||||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
|
||||
#ifdef _WIN32
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
#pragma code_page(1252)
|
||||
#endif //_WIN32
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Dialog
|
||||
//
|
||||
|
||||
IDD_MOUSE DIALOGEX 0, 0, 375, 257
|
||||
STYLE DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION |
|
||||
WS_SYSMENU
|
||||
EXSTYLE WS_EX_CLIENTEDGE
|
||||
CAPTION "DirectInput Mouse Sample"
|
||||
MENU IDR_MENU
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
GROUPBOX "Cooperative Level",IDC_STATIC,7,7,165,36
|
||||
CONTROL "&Exclusive",IDC_EXCLUSIVE,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,16,16,46,10
|
||||
CONTROL "&Nonexclusive",IDC_NONEXCLUSIVE,"Button",
|
||||
BS_AUTORADIOBUTTON,16,27,59,10
|
||||
CONTROL "F&oreground",IDC_FOREGROUND,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,100,16,52,10
|
||||
CONTROL "&Background",IDC_BACKGROUND,"Button",BS_AUTORADIOBUTTON,
|
||||
100,27,55,10
|
||||
GROUPBOX "Data Style",IDC_STATIC,178,7,70,36
|
||||
CONTROL "&Immediate",IDC_IMMEDIATE,"Button",BS_AUTORADIOBUTTON |
|
||||
WS_GROUP,188,16,48,10
|
||||
CONTROL "B&uffered",IDC_BUFFERED,"Button",BS_AUTORADIOBUTTON,188,
|
||||
27,43,10
|
||||
LTEXT "Data:",IDC_DATA_STATIC,7,222,18,8
|
||||
LTEXT "Device not created",IDC_DATA,31,222,337,11,SS_SUNKEN
|
||||
DEFPUSHBUTTON "&Create Device",IDC_CREATEDEVICE,7,236,60,14
|
||||
PUSHBUTTON "E&xit",IDCANCEL,318,236,50,14
|
||||
GROUPBOX "Expected Behavior",IDC_STATIC,7,47,361,171
|
||||
LTEXT "Behavior",IDC_BEHAVIOR,14,57,347,157
|
||||
LTEXT "Static",IDC_HELP_TEXT,252,16,110,26
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// DESIGNINFO
|
||||
//
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
GUIDELINES DESIGNINFO DISCARDABLE
|
||||
BEGIN
|
||||
IDD_MOUSE, DIALOG
|
||||
BEGIN
|
||||
LEFTMARGIN, 7
|
||||
RIGHTMARGIN, 368
|
||||
TOPMARGIN, 7
|
||||
BOTTOMMARGIN, 250
|
||||
END
|
||||
END
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// TEXTINCLUDE
|
||||
//
|
||||
|
||||
1 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"resource.h\0"
|
||||
END
|
||||
|
||||
2 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"#include ""afxres.h""\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
3 TEXTINCLUDE DISCARDABLE
|
||||
BEGIN
|
||||
"\r\n"
|
||||
"\0"
|
||||
END
|
||||
|
||||
#endif // APSTUDIO_INVOKED
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Icon
|
||||
//
|
||||
|
||||
// Icon with lowest ID value placed first to ensure application icon
|
||||
// remains consistent on all systems.
|
||||
IDI_MAIN ICON DISCARDABLE "directx.ico"
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Menu
|
||||
//
|
||||
|
||||
IDR_MENU MENU DISCARDABLE
|
||||
BEGIN
|
||||
POPUP "&File"
|
||||
BEGIN
|
||||
MENUITEM "E&xit", IDCANCEL
|
||||
END
|
||||
POPUP "&Device"
|
||||
BEGIN
|
||||
MENUITEM "&Create", IDM_CREATEDEVICE
|
||||
MENUITEM "&Release", IDM_RELEASEDEVICE
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Accelerator
|
||||
//
|
||||
|
||||
IDR_ACCELERATOR1 ACCELERATORS DISCARDABLE
|
||||
BEGIN
|
||||
"B", IDC_BACKGROUND, VIRTKEY, ALT, NOINVERT
|
||||
"C", IDC_CREATEDEVICE, VIRTKEY, ALT, NOINVERT
|
||||
"E", IDC_EXCLUSIVE, VIRTKEY, ALT, NOINVERT
|
||||
"I", IDC_IMMEDIATE, VIRTKEY, ALT, NOINVERT
|
||||
"I", IDC_BUFFERED, VIRTKEY, ALT, NOINVERT
|
||||
"N", IDC_NONEXCLUSIVE, VIRTKEY, ALT, NOINVERT
|
||||
"O", IDC_FOREGROUND, VIRTKEY, ALT, NOINVERT
|
||||
"R", IDC_CREATEDEVICE, VIRTKEY, ALT, NOINVERT
|
||||
"X", IDCANCEL, VIRTKEY, ALT, NOINVERT
|
||||
END
|
||||
|
||||
#endif // English (U.S.) resources
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
|
||||
#ifndef APSTUDIO_INVOKED
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Generated from the TEXTINCLUDE 3 resource.
|
||||
//
|
||||
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
#endif // not APSTUDIO_INVOKED
|
||||
|
||||
32
Library/dxx8/samples/Multimedia/DirectInput/Mouse/resource.h
Normal file
32
Library/dxx8/samples/Multimedia/DirectInput/Mouse/resource.h
Normal file
@@ -0,0 +1,32 @@
|
||||
//{{NO_DEPENDENCIES}}
|
||||
// Microsoft Developer Studio generated include file.
|
||||
// Used by mouse.rc
|
||||
//
|
||||
#define IDI_MAIN 102
|
||||
#define IDD_MOUSE 102
|
||||
#define IDR_MENU 103
|
||||
#define IDR_ACCELERATOR1 105
|
||||
#define IDC_DATA 1000
|
||||
#define IDC_CREATEDEVICE 1010
|
||||
#define IDC_BEHAVIOR 1012
|
||||
#define IDC_DATA_STATIC 1013
|
||||
#define IDC_HELP_TEXT 1015
|
||||
#define IDC_EXCLUSIVE 1110
|
||||
#define IDC_NONEXCLUSIVE 1111
|
||||
#define IDC_FOREGROUND 1120
|
||||
#define IDC_BACKGROUND 1121
|
||||
#define IDC_IMMEDIATE 1130
|
||||
#define IDC_BUFFERED 1131
|
||||
#define IDM_CREATEDEVICE 40003
|
||||
#define IDM_RELEASEDEVICE 40005
|
||||
|
||||
// Next default values for new objects
|
||||
//
|
||||
#ifdef APSTUDIO_INVOKED
|
||||
#ifndef APSTUDIO_READONLY_SYMBOLS
|
||||
#define _APS_NEXT_RESOURCE_VALUE 106
|
||||
#define _APS_NEXT_COMMAND_VALUE 40006
|
||||
#define _APS_NEXT_CONTROL_VALUE 1016
|
||||
#define _APS_NEXT_SYMED_VALUE 101
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user