Search Tools Links Login

Desktop on form


Put your desktop on a form and be able to click programs to open them right from it...

Original Author: Morpheous Dreams

Side Effects

You have to restart / or log off computer afterwards to restore desktop

API Declarations

Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Private Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As Long
Private Declare Function SetParent Lib "user32" (ByVal hWndChild As Long, ByVal hWndNewParent As Long) As Long

Code

Dim SysListView As Long
Dim SHELLDLLDefView As Long
Dim Progman As Long
Progman = FindWindow("Progman", vbNullString)
SHELLDLLDefView = FindWindowEx(Progman, 0, "SHELLDLL_DefView", vbNullString)
SysListView = FindWindowEx(SHELLDLLDefView, 0, "SysListView32", vbNullString)
Call SetParent(SysListView, Me.hWnd)

About this post

Posted: 2003-06-01
By: ArchiveBot
Viewed: 96 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.