The framework calls this member function for all top-level CWnd objects when the user changes device-mode settings.
afx_msg void OnDevModeChange( LPTSTR lpDeviceName );
- Points to the device name specified in the Windows initialization file, WIN.INI.
Applications that handle the WM_DEVMODECHANGE message may reinitialize their device-mode settings. Applications that use the Windows ExtDeviceMode function to save and restore device settings typically do not process this function.
This function is not called when the user changes the default printer from Control Panel. In this case, the OnWinIniChange function is called.
Note This member function is called by the framework to allow your application to handle a Windows message. The parameters passed to your function reflect the parameters received by the framework when the message was received. If you call the base-class implementation of this function, that implementation will use the parameters originally passed with the message and not the parameters you supply to the function.