🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #445

Re: HtmlHelp out of resources problem

#445
From: JB
Date: Wed, 16 Apr 2008 07:59
29 lines
1799 bytes
Bob Gonder <notbg@notmindspring.invalid> wrote:
>>HWND hWnd;
>>        (*MainForm->HtmlHelpFunction)(hWnd, MainForm-
>
>What is the value of hWnd?
>Seems to be random.
>
>>If instead I use the following:
>>
>>        (*MainForm->HtmlHelpFunction)(Handle, MainForm-
>
>And Handle is...?
>I think the first parameter is meant to be
>the handle of the current window, or at least,
>the window that will handle or modify the internal help clicks.

I guess it's the result of trying to use something that I 
didn't fully understand!  Yes the first parameter is the 
handle of the current (calling) window and is used to return 
focus to that window when the help file is closed.

Again you are right - I was trying to use hWnd unitinitalised, 
presumably it was luck that it worked at all.

Handle is however a property of TForm, so I guess this is the 
correct thing to use in this instance?

JB
Technical Details
Message-ID: <4805b1ec$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <4804c240$1@newsgroups.borland.com> <vd0a04d1qsmoc0ijvjd36l9eeulv7v0ae6@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ca88eda1979657b0
X-Google-Attributes: gid10cc67,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "JB" <jo4508@yahoo.co.uk>
Sender: "JB" <jo4508@yahoo.co.uk>
Reply-To: "JB" <jo4508@yahoo.co.uk>
Subject: Re: HtmlHelp out of resources problem
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 88.107.22.127     
References: <4804c240$1@newsgroups.borland.com> <vd0a04d1qsmoc0ijvjd36l9eeulv7v0ae6@4ax.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <4805b1ec$1@newsgroups.borland.com>
Date: 16 Apr 2008 00:59:40 -0700
X-Trace: newsgroups.borland.com 1208332780 207.105.83.66 (16 Apr 2008 00:59:40 -0700)
Lines: 32
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail