🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.os2.programmer
Article #1932

Re: Some programming questions. HELP !

#1932
From: Larry Salomon Jr.
Date: Wed, 07 Oct 1992 14:17
30 lines
1732 bytes
In <SO-ECS.92Oct7091401@stekt2.oulu.fi> so-ecs@stekt2.oulu.fi (Derek Heino Jr) writes:

>Here wo go:

>1. After inserting 1271 items in a combobox, I get a WIN1012 error:
>Maximum heap size reached: 65532 bytes. Those items that I inserted
>are strings with length of 29 bytes ( 29*1271=about 36kB ). So what I
>going to do ? Increase heap ( HOW ? )...

Nope.  You're stuck.  The listbox (which is part of a combobox) only 
allows you to insert 32k of data (I forgot exactly the reason why it
isn't 64k, but I believe it has something to do with internal state 
data per item that is maintained).  The only thing you can do is write
your own listbox, but that probably isn't feasible.

>2. How to control WM_SIZE ?

I assume that you want to limit either the maximum or minimum size of your
frame?  If so, you need to subclass the frame and process the WM_QUERYTRACKINFO
message and set the ptlMinTrackSize/ptlMaxTrackSize fields of the TRACKINFO
structure to the desired values.

>Thanks in advance.

Cheers,
Q
-- 
"If you choose not to decide, you  | "A fool and his money are fun to go
 still have made a choice" - Rush  |  out with" - seen on a T-shirt
------------------------------------------------------------------------
Technical Details
Message-ID: <1992Oct7.141748.27914@panix.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!europa.asd.contel.com!news.ans.net!cmcl2!panix!os2man
References: <SO-ECS.92Oct7091401@stekt2.oulu.fi>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!europa.asd.contel.com!news.ans.net!cmcl2!panix!os2man
From: os2man@panix.com (Larry Salomon Jr.)
Subject: Re: Some programming questions. HELP !
Message-ID: <1992Oct7.141748.27914@panix.com>
Date: Wed, 7 Oct 1992 14:17:48 GMT
Distribution: comp.os.os2.misc,comp.os.os2.programmer
References: <SO-ECS.92Oct7091401@stekt2.oulu.fi>
Organization: PANIX Public Access Unix, NYC
Lines: 30