www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/04/15:15:33

From: year2000uk AT my-dejanews DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Re: off topic-- windows progr question
Date: Mon, 03 Aug 1998 09:47:15 GMT
Organization: Deja News - The Leader in Internet Discussion
Lines: 40
Message-ID: <6q40v4$g76$1@nnrp1.dejanews.com>
References: <35C55A18 DOT 9EE2BC7E AT lasalle DOT edu DOT co>
NNTP-Posting-Host: 152.200.116.31
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <35C55A18 DOT 9EE2BC7E AT lasalle DOT edu DOT co>,
  MAPE <mpereze AT lasalle DOT edu DOT co> wrote:
> Hi, this may be very off topic, sorry.
>
> Rectangular push-buttons are creativity limiting. How do I do any-form
> push buttons in VC++ or VBasic? There are a way in another languaje?
> Thank you.
>
> MAPE
>
>

In 32 bit windows you can use the SetWindowRgn (sp ?) API to set the shape of
a window to any shape you choose, You then have to deal with painting it
yourself (e.g. use ownerdraw) or the button will look very odd (you've just
clipped the rectangular version to an arbitary shape)


If you find you don't want to re-invent this wheel each time, you package it
into an OCX (ActiveX) control, which you write with VC.

Most languages can use OCXs even if they are weak on dealing the Win32 API.
For example in VB it's a lot easy to use an OCX than write all this code
yourself.

If you look on the web, somebody's already selling a toolkit which is exactly
this OCX.  IIRC it's call button maker (?) or something like that







--
Y2K Made Easy - Compliance Information on 20,000 products -
http://www.ans2000.com

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019