Compartir a través de


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

Parameters

  • lpDeviceName
    Points to the device name specified in the Windows initialization file, WIN.INI.

Remarks

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.

Nota

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.

Requirements

Header: afxwin.h

See Also

Reference

CWnd Class

Hierarchy Chart

WM_DEVMODECHANGE

Concepts

CWnd Members