Follow standard practice and include the header corresponding to the source file from it explicitly. Also include wx/gdicmn.h from the header itself, this is a pretty common header and there is no real advantage in avoiding it there and including it allows to avoid a bunch of forward declarations.