Groups | Search | Server Info | Login | Register


Groups > comp.os.ms-windows.programmer.win32 > #8575

Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes?

From "R.Wieser" <address@is.invalid>
Newsgroups comp.os.ms-windows.programmer.win32, alt.windows7.general
Subject Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes?
Date 2025-11-15 08:50 +0100
Organization A noiseless patient Spider
Message-ID <10f9bd3$3c4ff$1@dont-email.me> (permalink)
References (1 earlier) <m7vbk4ymwge5.1439c66pkym5v$.dlg@40tude.net> <10f4hfc$24jhv$1@dont-email.me> <1umg182valp4f$.9grfgthaw0bv.dlg@40tude.net> <10f6k5g$2mb50$1@dont-email.me> <1d1cjbnyudds7$.m8asq9qz9uee.dlg@40tude.net>

Cross-posted to 2 groups.

Show all headers | View raw


JJ,

> It's right there in plain sight:
>
> "At the time of the HCBT_CREATEWND notification, the window has been
> created"
>
> So, anything which you changed in the CREATESTRUCT structure, won't do
> anything.

It also says

"Contains information passed to a WH_CBT hook procedure, CBTProc, *before a 
window is created*."

and

"A pointer to a CREATESTRUCT structure that contains initialization 
parameters for the window *about to be created*."

and

"It is possible to send messages to *the newly created window*,"

So, we have a Schrödinger's cat window which, in the HCBT_CREATEWND event, 
is at the same time both created and not created ?

Yeah, that really gives me confidence about the correctness/completeness of 
the rest of the provided information. :-(


Also,

"Specifies a long pointer to a CBT_CREATEWND structure containing 
*initialization parameters for the window*."

Which is *at best* vague.  At face value it seems to indicate that *all* of 
those parameters are used.

Which is followed by

"The parameters *include* the coordinates and dimensions of the window."

And pardon me, but as far as I know "include" doesn't translate to "with the 
exclusion of everything else" in *any* language.


Again : do you perhaps have any information, MSDN or otherwise, about which 
fields in that CREATESTRUCT may be changed (are carried on to the resulting 
window) ?

If that information is not available than I will just determine them 
empirically.


And by the way: I just tried to change the Style and ExStyle fields, but 
those also get ignored.

Regards,
Rudy Wieser

Back to comp.os.ms-windows.programmer.win32 | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-12 09:23 +0100
  Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-13 12:34 +0700
    Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-13 07:51 +0100
      Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-14 12:09 +0700
        Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-14 08:01 +0100
          Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-15 11:37 +0700
            Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-15 08:50 +0100
              Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-16 14:16 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-16 11:21 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-16 15:27 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-16 21:51 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-17 14:14 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-17 10:01 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-18 21:18 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-18 14:43 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-19 14:25 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-19 12:28 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-18 15:44 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-19 00:33 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-19 08:10 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-19 14:37 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-19 13:08 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-19 14:25 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-19 07:35 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-19 14:46 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-19 12:45 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-19 11:22 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-20 14:54 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-20 10:16 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-22 01:29 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "R.Wieser" <address@is.invalid> - 2025-11-22 07:40 +0100
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-22 11:19 +0000
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-22 13:48 +0700
                Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes? JJ <jj4public@gmail.com> - 2025-11-22 13:50 +0700
                Entering odd characters (was: Re: SetWindowsHook WH_CBT HCBT_CREATEWND CREATESTRUCT - making changes?) "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-22 11:47 +0000
                Re: Entering odd characters JJ <jj4public@gmail.com> - 2025-11-23 08:29 +0700
                Re: Entering odd characters "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-23 02:54 +0000
                Re: Entering odd characters JJ <jj4public@gmail.com> - 2025-11-24 15:46 +0700
                Re: Entering odd characters - and regedit funny "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-24 09:31 +0000
                Re: Entering odd characters - and regedit funny JJ <jj4public@gmail.com> - 2025-11-25 11:09 +0700
                Re: Entering odd characters - and regedit funny "Kerr-Mudd, John" <admin@127.0.0.1> - 2025-11-25 10:57 +0000
                Re: Entering odd characters - and regedit funny "J. P. Gilliver" <G6JPG@255soft.uk> - 2025-11-25 13:14 +0000

csiph-web