en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en de en nl en en en pt en en en en de en en de fr en en en en nl en en en en en en en fr en en fr pt en en de en nl en en en en en en en en en fr en en en en nl en en en en en en fr en en fr pt en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC for Windows only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
3 Feb 2000, 07:31 PM
I hate to bug everyone here with my stupid questions but yet again I am stumpped!
dim BMINFO as BITMAP
dim hBmp as long
hBmp = LoadBitmap(hInstance, "button1")
all the members of BMINFO report proper values for the bitmap except for ".bmBits" for some reason this returns zero. This member is supposed to contain the 32bit address for the bitmap pixel data. Am I missing something here?
Join Date: Aug 1998
4 Feb 2000, 04:00 AM
I'd say your answer lies in the following WIN32.HLP notes:
The buffer pointed to by the lpvObject parameter must be sufficiently large to receive the information about the graphics object.
If hgdiobj identifies a bitmap created by calling CreateDIBSection, and the specified buffer is large enough, the GetObject function returns a DIBSECTION structure. In addition, the bmBits member of the BITMAP structure contained within the DIBSECTION will contain a pointer to the bitmap's bit values.
If hgdiobj identifies a bitmap created by any other means, GetObject returns only the width, height, and color format information of the bitmap. You can obtain the bitmap's bit values by calling the GetDIBits or GetBitmapBits function.
4 Feb 2000, 01:27 PM
Oh... Now I get it!
Thank you Lance. What docments/help files did that little blurb come from. If I new, I could stop asking DaFt questions. As it turns out, I ended up using code from SMTP.BAS
Join Date: Aug 1998
6 Feb 2000, 04:58 AM
Warning... 8Mb download, but worth every byte!
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 01:46 AM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.