- case wxSTIPPLE:
- case wxBDIAGONAL_HATCH:
- case wxCROSSDIAG_HATCH:
- case wxFDIAGONAL_HATCH:
- case wxCROSS_HATCH:
- case wxHORIZONTAL_HATCH:
- case wxVERTICAL_HATCH:
- case wxSOLID:
+#ifdef wxHAVE_EXT_CREATE_PEN
+ case wxPENSTYLE_DOT:
+ return PS_DOT;
+
+ case wxPENSTYLE_DOT_DASH:
+ return PS_DASHDOT;
+
+ case wxPENSTYLE_USER_DASH:
+ return PS_USERSTYLE;
+
+ case wxPENSTYLE_STIPPLE:
+ case wxPENSTYLE_BDIAGONAL_HATCH:
+ case wxPENSTYLE_CROSSDIAG_HATCH:
+ case wxPENSTYLE_FDIAGONAL_HATCH:
+ case wxPENSTYLE_CROSS_HATCH:
+ case wxPENSTYLE_HORIZONTAL_HATCH:
+ case wxPENSTYLE_VERTICAL_HATCH:
+ case wxPENSTYLE_SOLID:
+#endif // wxHAVE_EXT_CREATE_PEN
+