Mercurial > dwindows
comparison dw.hpp @ 2906:9d6280f206bd
Minor code cleanups in the template and C++ bindings.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Sun, 25 Dec 2022 16:21:52 +0000 |
parents | 0f5008c05134 |
children | afd2d900d1e9 |
comparison
equal
deleted
inserted
replaced
2905:0f5008c05134 | 2906:9d6280f206bd |
---|---|
255 if(IsOverridden(Window::OnConfigure, this)) { | 255 if(IsOverridden(Window::OnConfigure, this)) { |
256 dw_signal_connect(hwnd, DW_SIGNAL_CONFIGURE, DW_SIGNAL_FUNC(_OnConfigure), this); | 256 dw_signal_connect(hwnd, DW_SIGNAL_CONFIGURE, DW_SIGNAL_FUNC(_OnConfigure), this); |
257 ConfigureConnected = true; | 257 ConfigureConnected = true; |
258 } else { | 258 } else { |
259 ConfigureConnected = false; | 259 ConfigureConnected = false; |
260 } | 260 } |
261 } | 261 } |
262 static int _OnDelete(HWND window, void *data) { | 262 static int _OnDelete(HWND window, void *data) { |
263 if(reinterpret_cast<Window *>(data)->_ConnectDelete) | 263 if(reinterpret_cast<Window *>(data)->_ConnectDelete) |
264 return reinterpret_cast<Window *>(data)->_ConnectDelete(); | 264 return reinterpret_cast<Window *>(data)->_ConnectDelete(); |
265 return reinterpret_cast<Window *>(data)->OnDelete(); } | 265 return reinterpret_cast<Window *>(data)->OnDelete(); } |