Hello guys, I have a simple question about window handles, can window handles changing in runtime? / Is it safe to store the HWND value of any window in a variable for later use? that's :) thanks.
if window creation is successful, the handle is valid until the window is destroyed
it is common practice to store window and control handles in "permanent" (global) memory for access by other procedures
Quote from: dedndave on September 02, 2014, 07:08:30 AM
if window creation is successful, the handle is valid until the window is destroyed
it is common practice to store window and control handles in "permanent" (global) memory for access by other procedures
thank you dedndave, just want to know if it's 100% safe.
If the memory fails, it is only ...% safe ! No ? :biggrin:
well - it's safe in single-threaded models :P