<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/september-4-2026-xjph4ulru" -->

---
title: September 4, 2026 | daily.dev
description: A short technical note explains what happens when a window class's GCL_CBWNDEXTRA value is changed after the class is registered: the change only affects...
canonical: https://daily.dev/posts/september-4-2026-xjph4ulru
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: September 4, 2026 | daily.dev
og:description: A short technical note explains what happens when a window class's GCL_CBWNDEXTRA value is changed after the class is registered: the change only affects...
og:url: https://daily.dev/posts/september-4-2026-xjph4ulru
og:image: https://api.daily.dev/og/posts/XjpH4ULru.png
og:image:alt: September 4, 2026
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# September 4, 2026

**[The Old New Thing](https://daily.dev/sources/oldnewthing)** · 1 min read · 0 upvotes · 0 comments

## Summary

A short technical note explains what happens when a window class's GCL_CBWNDEXTRA value is changed after the class is registered: the change only affects windows created afterward, not existing windows, since the extra bytes allocation is fixed at window creation time based on the class's value at that moment.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://devblogs.microsoft.com/oldnewthing/20260904-00>

## Questions this post answers

### If I change a window class's GCL_CBWNDEXTRA value at runtime, does it affect windows already created from that class?

No, it only affects windows created after the change. The extra bytes allocated for a window are determined by the class's GCL_CBWNDEXTRA value at the moment that specific window is created, so existing windows keep their original extra-byte allocation size while new windows use the updated value.

_Anyone debugging Win32 window class quirks like this can track similar deep-dive explainers on daily.dev._

## Similar posts on daily.dev

- [June 30, 2026](https://daily.dev/posts/june-30-2026-rvvzt0ykk) · DevBlogs · 1 upvotes · 1 comments
- [September 24, 2026](https://daily.dev/posts/september-24-2026-eyckjzxpo) · The Old New Thing · 2 upvotes · 0 comments
- [September 11, 2026](https://daily.dev/posts/september-11-2026-aqkp3ksqz) · The Old New Thing · 0 upvotes · 0 comments
- [December 29, 2025](https://daily.dev/posts/december-29-2025-bf4am1afb) · DevBlogs · 0 upvotes · 0 comments

---

Tags: [#windows](https://daily.dev/tags/windows)

[View this post on daily.dev](https://daily.dev/posts/september-4-2026-xjph4ulru)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"September 4, 2026","url":"https://daily.dev/posts/september-4-2026-xjph4ulru","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/september-4-2026-xjph4ulru"},"datePublished":"2026-09-05T04:23:15.919Z","dateModified":"2026-09-05T05:18:40.495Z","description":"A short technical note explains what happens when a window class's GCL_CBWNDEXTRA value is changed after the class is registered: the change only affects...","image":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","thumbnailUrl":"https://media.daily.dev/image/upload/s--foaA6JGU--/f_auto/v1722860399/public/Placeholder%2004","isAccessibleForFree":true,"articleSection":"The Old New Thing","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"The Old New Thing","logo":"https://media.daily.dev/image/upload/s--jKXDeorG--/f_auto,q_auto/v1783840773/logos/oldnewthing?_a=BAMAMicg0","url":"https://daily.dev/sources/oldnewthing"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/september-4-2026-xjph4ulru","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"windows","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"The Old New Thing","item":"https://daily.dev/sources/oldnewthing"},{"@type":"ListItem","position":3,"name":"September 4, 2026"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/september-4-2026-xjph4ulru#faq","mainEntity":[{"@type":"Question","name":"If I change a window class's GCL_CBWNDEXTRA value at runtime, does it affect windows already created from that class?","acceptedAnswer":{"@type":"Answer","text":"No, it only affects windows created after the change. The extra bytes allocated for a window are determined by the class's GCL_CBWNDEXTRA value at the moment that specific window is created, so existing windows keep their original extra-byte allocation size while new windows use the updated value. Anyone debugging Win32 window class quirks like this can track similar deep-dive explainers on daily.dev."}}]}
```

