🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #2778

Re: Beginner Help

#2778
From: Paul Bonneau
Date: Tue, 21 May 1991 22:49
27 lines
1508 bytes
In article <1991May21.183435.15832@maytag.waterloo.edu> markb@csg.uwaterloo.ca (Mark Brezina) writes:
>	I've only been programming windows for a couple of weeks so these 
>	questions may seem obvious...
> 
>	How do I initialize a radio button to be selected?
CheckRadioButton()

> 
>	Does a bitmap handle to the clipboard have to be locked (using
>	GlobalLock) before the bits can be examined?
> 
Once you have obtained a bitmap handle, you can use the
function GetBitmapBits() to copy the bits into a buffer you
supply.

>	How do I create a windows application that is simply a dialoge box
>	(no menu, no window) I would like a file requestor to come up when
>	the application is launched.  No menus or windows are needed.
>
I have never tried this, but I suppose you could simply call
DialogBox() from WinMain().  Don't even bother with the
message loop (DialogBox() uses its own), and just return
after the call (assuming this is the behaviour you want).
Oh yes, use GetActiveWindow() to supply the parent window
handle (hWndParent).

cheers - Paul Bonneau.
Technical Details
Message-ID: <1991May21.224931.22016@hyper.hyper.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
References: <1652@msa3b.UUCP> <1991May21.183435.15832@maytag.waterloo.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watserv1!watmath!hyper.hyper.com!bonneau
From: bonneau@hyper.hyper.com (Paul Bonneau)
Subject: Re: Beginner Help
Message-ID: <1991May21.224931.22016@hyper.hyper.com>
Reply-To: bonneau@hyper.UUCP (Paul Bonneau,,)
Organization: HyperCube Inc.
References: <1652@msa3b.UUCP> <1991May21.183435.15832@maytag.waterloo.edu>
Date: Tue, 21 May 1991 22:49:31 GMT