@@ -1,7 +1,8 @@ /* * Copyright (c) 2011, 2012, Jonathan Schleifer + * Copyright (c) 2011, 2012, Dillon Aumiller * * https://webkeks.org/hg/objgui/ * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -39,11 +40,17 @@ @interface OGComboBox: OGWidget { id delegate; id dataSource; } + +#ifdef OG_W32 +//unfortunately, the built-in Win32 ListBox stores a pointer to it's parent (for sending selection changed notifications) during CreateWindow(). +//it does not update it after a SetParent()... unless we implement a custom ListBox control i don't see a way around this... +- initWithParent : (OGWidget *)parent; +#endif @property (assign) id delegate; @property (assign) id dataSource; + comboBox; @end