Re: what happens when WM_DEVMODECHANGE message is broadcasted

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



The application must handle the message in it's window procedure in order to
detect the changes. If it was not written to handle the message, it will
not update it's UI to reflect them.


"Ken" <Ken@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:21A7C91E-9F29-4CE3-8919-EBEC2AE87884@xxxxxxxxxxxxxxxx
Hi..
Whenever printer settings are changed, i am passing this message.

SendMessageTimeout (HWND_BROADCAST, WM_DEVMODECHANGE, 0L, (LPARAM)
pszPrinterName, SMTO_NORMAL, 1000,
NULL)

So that applications will come to know the change in devmode. But the new
changes are not reflected in opened applications. Can somebody tell me
what
happens when WM_DEVMODECHANGE message is broadcasted?? and why the change
is
not reflected in opened application??

Thanks in Advance.


.