dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual Basic
Expertise: Advanced
Jul 2, 2001

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Use Windows API Calls to Create Windows of Different Shapes


You can create windows of different shapes using windows API calls in Visual Basic. Use the API Text Viewer tool to see all the API functions available for use in VB.

The functions to used are: CreateEllipticRgn, CreateRoundRectRgn, SetWindowRgn. The code here demonstrates creating an elliptical/ rounded rectangular window. Comment/uncomment the appropriate call to the CreateRgn method to change the shape of the window.

Follow these instructions:

1) Open a new VB standard Exe project.

2) Paste the following code in a standard bas module (definitions of the API functions used in this code can be obtained from the API Text Viewer tool):
 
Public Declare Function SetWindowRgn Lib 
Jatin Shah
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date