Export (0) Print
Expand All
MFC
Expand Minimize

CWnd::OnDevModeChange

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  
);

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.

NoteNote:

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.

Header: afxwin.h

Community Additions

ADD
Show:
© 2014 Microsoft