Of course I did a WM_KEYUP too. I've even set the other bits in lParam according to what
the API reference tells me. Does not work.

Other things I've tried that didn't work:


    [*]SystemParametersInfo() with SPI_SETDESKPATTERN (causing Windows read the Pattern= line of WIN.INI)
    [*]SystemParametersInfo() with SPI_SETSCREENSAVEACTIVE with TRUE, and then called again with FALSE (I thought it will activate the screensaver for some milliseconds, but it doesn't ... Also, WM_SYSCOMMAND with SC_SCREENSAVE can only activate it)
    [*]SendMessage() with WM_SYSCOMMAND and SC_MAXIMIZE
    [*]SendMessage() with WM_SYSCOMMAND and SC_RESTORE (Note: use SC_MINIMIZE on the Desktop and you will crash in kernel32 :grin: )
    [*]SendMessage() with WM_COMMAND and WM_REFRESH_DESKTOP (EQU 0A065h)
    [*]www.google.com :grin: ... gave me a few links to experts-exchange.com but nothing helpful


    Houston, we have ... :grin:

    <EDIT>
    Ah, finally I found it:

    invoke SHChangeNotify, SHCNE_ASSOCCHANGED, SHCNF_FLUSH, NULL, NULL


    Updates all desktop items immediately.
    </EDIT>


    aweX <-
Posted on 2003-02-23 01:44:57 by aweX
Thanks, aweX - added to snippet collection! :alright:

http://www.madwizard.org/snippets/index.php
Posted on 2003-02-23 02:15:28 by bitRAKE
Hmm, why is my name aweX aweX in the archive?

Also, I think this thread is a candidate for the FAQ section list of this board.
Posted on 2003-02-23 02:57:24 by aweX

Hmm, why is my name aweX aweX in the archive?
Thomas designed the snippet library so it requires a first and last name. If you register then I can change it to your handle, or I could change it to your full name right now.
Posted on 2003-02-23 11:23:37 by bitRAKE
I fixed your name on the snippet, it's aweX only once now :)

Thomas
Posted on 2003-02-23 12:49:19 by Thomas