I have a wxPanel with a wxComboBox and wxTreeListCtrl that render nicely like this:
- HideMapFeatures0.JPG (16.63 KiB) Viewed 829 times
And I can use their wxWindowBase::Hide() function to hide them, like this:
- HideMapFeatures1.JPG (11.6 KiB) Viewed 829 times
The problem I'm having is during my apps startup, if I call ::Hide() too soon, subsequent calls to ::Show() gives this:
- HideMapFeatures2.JPG (11.71 KiB) Viewed 829 times
An obvious fix is to call ::Hide() further down the startup chain, but I'm working with some legacy code and it's non-trivial to do that. My question is, is there a function I can call to check whether it's too soon to call Hide()?