Results 1 to 3 of 3

Thread: Desktop messages...

  1. #1

    Desktop messages...

    Hi all,

    I am writing an app that renders an OpenGL scene to the desktop, now i have a few problems, although the rendering works great, but when i disable the taskbar and double click the desktop the startmenu appears, is there any way of disableing this, i have tried to use hooks, etc but it doesnt seem to send a WM_LBUTTONDBLCLK message :s i found its name to be #32769 and a current handle of 65556, i cant seem to get anything from what it is, even the FindWindow function cant find it?!

    An option i was considering was to just render the scene to a form instead of the desktop, but i still want to disable the taskbar, etc, but this leaves an empty space where the taskbar was, im sure this is where the taskbar was LOCKED, but is there any way of changing this through code?

    Thanx for any help
    M109uk
    <br />--------------------------------------------------------
    <br />www.pulse-soft.oneuk.com

  2. #2
    Legendary Member cairnswm's Avatar
    Join Date
    Nov 2002
    Location
    Randburg, South Africa
    Posts
    1,537

    Desktop messages...

    I remember I found a way to disable the start button...


    [pascal]
    //Enable:
    EnableWindow(FindWindowEx(FindWindow
    ('Shell_TrayWnd', nil), 0,'Button',nil),TRUE) ;
    //Disable:
    EnableWindow(FindWindowEx(FindWindow
    ('Shell_TrayWnd', nil), 0,'Button',nil),FALSE) ;[/pascal]


    Not sure if that helps though.




    [/pascal]
    William Cairns
    My Games: http://www.cairnsgames.co.za (Currently very inactive)
    MyOnline Games: http://TheGameDeveloper.co.za (Currently very inactive)

  3. #3

    Desktop messages...

    Thanx for the reply,

    I dont have a problem with the start button, i disable the whole taskbar so its now longer visible and i disable the start menu key.
    This works perfectly, i cant get the menu up or anything.

    Then i added code to hide the desktop (Icons, etc) then for some reason if you double click anywhere on the desktop, the start menu appears, im not sure why.

    Below is the code i use to disable the taskbar and desktop:

    [pascal]
    procedure TForm1.Button1Click(Sender: TObject);
    var
    wndTaskbar: HWnd;
    OldVal: LongInt;
    begin
    wndTaskbar := FindWindow('Shell_TrayWnd', Nil);
    If wndTaskbar <> 0 Then
    Begin
    If HideIt Then
    Begin
    // Hide taskbar and desktop
    EnableWindow(wndTaskbar, False); // Disable taskbar
    ShowWindow(wndTaskbar, SW_HIDE); // Hide taskbar

    // ----< Hooking stuff >----

    ShowWindow(FindWindow(Nil, 'Program Manager'), SW_HIDE); // Hide desktop (Icons, etc)

    HideIt := False;
    End Else
    Begin
    // Show taskbar and desktop
    EnableWindow(wndTaskbar, True); // Enable taskbar
    ShowWindow(wndTaskbar, SW_SHOW); // Show taskbar

    // ----< Hooking stuff >----

    ShowWindow(FindWindow(Nil, 'Program Manager'), SW_SHOW); // Show desktop (Icons, etc)

    HideIt := True;
    End;
    end;
    [/pascal]

    I try to hook the left double click event, but this doesnt message isnt passed :s



    Edit:
    I have uploaded my sample program to test this, with source:
    http://www.biocoders.org/Sample01.zip




    Thanx for any help
    M109uk
    <br />--------------------------------------------------------
    <br />www.pulse-soft.oneuk.com

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •