Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office like toolbar effect with VFP
Message
De
13/10/2000 10:16:54
Scott Knight
Human Resources Development Canada
St. John's, Terre-Neuve, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00427939
Message ID:
00429050
Vues:
18
George,
As I was working with the functions you described and digging into some additional research I repeated the problem to myself and came up with the following:

Instead of altering the desktop maybe I can acheive the same affect and it just seems like the desktop height is altered. When the VFP app loads it would have no max, min, resize, etc, etc. It is suck to the top of the sceen and the user cannot do anything with it, except close it. It would also be set to be always on top. I would then minimize all other running windows. I think I have this much figured out. The question is it possible to tell windows that when a window is maximized the maximum height allowed is for example 250 pixels less than what it is by default. I have looked at WM_GETMINMAXINFO, Windows Messages, WM_CREATE, etc, but I'm sure how they can be used together to acheive the effect. I think I'm getting closer and I know it can be done because I've seen it...

Thanks again


Scott
>>George,
>>I hadn't either until I installed a free internet disk on a fiend's machine. The application loaded from the desktop, connected to a Dialup Server, and docked itself to the top of the desktop. It wasn't Windows looking (developed with some other tool) but if the desktop could be altered as I described why VFP or at Least C++. You can see what I'm talking about at http://www.1stup.com ,click "partners",click "free access", click the "next" button twice. I looking for the effect using VFP/API or C++ once I have some kind of idea how to do this???
>>
>Scott,
>
>What follows is pure guesswork since I don't know if it applies to the desktop window. If I were trying this, I'd look at the following functions: GetDesktopWindow() and SetWindowPos(). The first one returns the window handle of the desktop. The second one has two uses: 1.) Set a window's height, width, left and top properties; 2.) Set the Z-Order. In the latter case, it can be used to setup a window as always-on-top. I'd also use _GetWRect() from the foxtools library so that I could retrieve the current height, width etc. of the desktop.
>
>I'm busy right now trying to get a Win95B swapable drive working right, so I can't be of too much more help as I'm kind of popping in and out of here right now. If specific information about any of the functions I've mentioned above is required, you might want to check the API section for the first two functions and my Extended Foxtools Help file for _GetWRect() or just post a question.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform