windows_programming_notes.nbk: Home | Index | Next Page: WNDCLASS | Previous Page: WM_WINDOWPOSCHANGING


 WM_WININICHANGE

An application sends the WM_WININICHANGE message to all top-level windows after making a change to the WIN.INI file. The SystemParametersInfo function sends this message after an application uses the function to change a setting in WIN.INI.

Note The WM_WININICHANGE message is provided only for compatibility with earlier versions of the system. Applications should use the WM_SETTINGCHANGE message.

A window receives this message through its WindowProc function.

    LRESULT CALLBACK WindowProc(
      HWND hwnd,       // handle to window
      UINT uMsg,       // message identifier
      WPARAM wParam,   // not used; must be zero
      LPARAM lParam    // system parameter area
    );

Parameters

Return Value

If you process this message, return zero.

Remarks

To send the WM_WININICHANGE message to all top-level windows, use the SendMessage function with the hWnd parameter set to HWND_BROADCAST.

Calls to functions that change WIN.INI may be mapped to the registry instead. This mapping occurs when WIN.INI and the section being changed are specified in the registry under the following key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\IniFileMapping

The change in the storage location has no effect on the behavior of this message.

Requirements


windows_programming_notes.nbk: Home | Index | Next Page: WNDCLASS | Previous Page: WM_WINDOWPOSCHANGING


Notebook exported on Monday, 7 July 2008, 18:56:50 PM Eastern Daylight Time