Hi all,
I used the following code to generate a standard dialog for selecting the
com / serial port settings.
// TODO: Add your control notification handler code here
char device_name =“Com1”; //title for dialog not used to get handle
HWND parent_window_handle = ::GetForegroundWindow();
BOOL return_value = FALSE;
BYTE * buffer = reinterpret_cast< BYTE * >( NULL );
unsigned long m_ErrorCode;
try
{
buffer = new BYTE[8192]; // insanely large buffer
}
catch( … )
{
buffer = reinterpret_cast< BYTE * >( NULL );
}
if ( buffer == NULL )
{
return; //( FALSE );
}
memset(buffer,8192,0);
LPCOMMCONFIG communications_configuration_p = reinterpret_cast<
LPCOMMCONFIG >( buffer );
communications_configuration_p->dwSize = 8192;
communications_configuration_p->dcb.DCBlength = sizeof( DCB );
return_value = ::CommConfigDialog( device_name, parent_window_handle,
reinterpret_cast< LPCOMMCONFIG >( buffer ) );
if ( return_value == FALSE )
{
m_ErrorCode = ::GetLastError();
//WFCTRACEERROR( m_ErrorCode );
delete buffer;
buffer = reinterpret_cast< BYTE * >( NULL );
return; //( FALSE );
}
delete buffer;
This code is called from a property page.
My question is how do I make the dialog appear to be imbedded in the
property page rather than appearing as a popup.
thanks
Robert Fernando
Anite Telecoms Ltd
110 Fleet Road
Fleet
Hampshire GU51 4BL
United Kingdom
Tel: +44 (0) 1252 775200
Fax: +44 (0) 1252 775 321
Email: xxxxx@anitetelecoms.com
Anite Telecoms Limited Registered in England No. 1721900 Registered
Office: 100 Longwater Avenue, GreenPark, Reading, Berkshire RG2 6GP,
United Kingdom
You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com