top | item 46264159

(no title)

rovingeye | 2 months ago

I assume by "move the context into the body" you mean using GetWindowLongPtr? Why not just use a static wndproc at that point?

discuss

order

pjmlp|2 months ago

I mean using a static C++ lambda that moves the context into the lambda body via capture specifier.

C++ lambdas are basically old style C++ functors that are compiled generated, with the calling address being the operator().

rovingeye|2 months ago

That doesn't sound like a valid wndproc