HELP: Problem maximizing a Windows help window

HELP: Problem maximizing a Windows help window

Post by Dave Emmerso » Thu, 17 Apr 1997 04:00:00




[snip]

Quote:> I've got a Winhelp 4 help file that was created using HDK.
> I'm using Windows 95

> (1) When I open the help file using a Winhelp call from my 16-bit
> C program, and press the window's maximise button, it goes *off of the
right hand
> side of my screen*, and I cannot move it (because it's maximised), and
> cannot restore its size.

Beats me, I haven't found a helpfile which does this.
However, you _can_ restore it, just type Alt+Space then R  to activate the
Restore
option in the Window's system menu.

Quote:> (2) If I double-click on the help file in Windows Explorer, this problem
> does not occur; i.e. when I maximise the window, it simply fills the
> screen - it behaves correctly.

> Does anyone have any idea what could be causing this problem?
> Is it a problem with the way I'm calling the help file?

Seems a good bet, what parameters are you passing to the call to WinHelp()
in your C program?
Are both methods actually calling the same help application for your help
file?

        dave.

 
 
 

HELP: Problem maximizing a Windows help window

Post by dave » Tue, 29 Apr 1997 04:00:00



Quote:> I'm wondering if any of you can help me with a problem I've currently
got.
> I've got a Winhelp 4 help file that was created using HDK.
> I'm using Windows 95

> (1) When I open the help file using a Winhelp call from my 16-bit
> C program,
> and press the window's maximise button, it goes *off of the right hand
> side of my screen*, and I cannot move it (because it's maximised), and
> cannot restore its size.

> (2) If I double-click on the help file in Windows Explorer, this problem
> does not occur; i.e. when I maximise the window, it simply fills the
> screen - it behaves correctly.

> Does anyone have any idea what could be causing this problem?

I stumbled across this in MSVC's help whilst looking for something else.
Maybe you could arrange to make this call the first time your app uses
WinHelp?

=======
The HELPWININFO structure contains the size and position of either a
primary or a secondary Help window. An application can set this information
by calling the WinHelp function with the HELP_SETWINPOS value.
typedef struct {    // hwi  
    int   wStructSize;
    int   x;
    int   y;
    int   dx;
    int   dy;
    int   wMax;
    TCHAR rgchMember[2];

Quote:} HELPWININFO;

(there's more detail in the help file).

        Dave.

--
===== disclaimer
Harlequin Ltd. does not necessarily endorse my views.
I have a personal interest in WinHelp, the Web, and HTML in general, but am
not associated with
Harlequin WebMaker:  http://www.harlequin.com/

 
 
 

1. Maximizing MDI Child Window and CS_NOCLOSE problem under Windows 95

Hi,
        I have a problem with maximizing an MDI child window under Window 95.
        I register a window class which sets CS_NOCLOSE as one of the
        attributes for windows created using this class. When the child
        window is created using the window class mentioned previously the
        x icon in the upper right of the child window is grayed suggesting
        that this window cannot be closed. If the window is not maximized
        then clicking on the x icon has no effect, however, if the child
        window is maximized then clicking on its x icon destroys the window
       (even though the x is still grayed). I get around this problem by
        using my own WM_CLOSE handler, however, I assumed that the CS_NOCLOSE
        used in creating the window would have taken care of this. Is this
        a problem with Windows 95 or is there something I'm missing.
        Note that the above problem is not evident in Windows NT.
        Thanks in advance for any help.
                                                                Wayne.

2. ICCS'99: deadline extended

3. HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!HELP!!!

4. Publishing problem

5. How to create the window without maximize button or with maximize button disbaled.

6. Where can we get 1TR6, VN-2, NET-3, (INS64(?)) ISDN standards?

7. Please help, problem with FMTID_SummaryInformation on Windows XP (and ONLY windows xp)

8. Secure websites

9. Help on help : How to link fromPopup to normal help window

10. Child Windows (HELP HELP HELP)

11. Child windows (HELP HELP HELP)

12. Windows Messag that Minimizes/Maximizes window?

13. Maximize DOS shell window in Windows 3.1