Casewm_ctlcoloredit: {HWND hshelltext=GetDlgItem (Hdlg,idc_txt_shell); if(Hshelltext = =(HWND) lParam) {HDC HDC=(HDC) WParam; SetTextColor (Hdc,rgb (0,255,0)); SetBkColor (Hdc,rgb (0,0,0)); } return(INT_PTR) Getsyscolorbrush (Color_background); } Break;
In response to the above message, you can get black green characters like a DOS window Editctrl, the font is not very similar, the following settings under the font
StaticHfont Hfont = CreateFont ( -,//nheight 0,//nwidth 0,//nescapement 0,//norientationFw_medium,//Nweight false,//BitalicFALSE,//Bunderline 0,//CstrikeoutDefault_charset,//NcharsetOut_default_precis,//noutprecisionClip_default_precis,//nclipprecisionDefault_quality,//nqualityDefault_pitch |Ff_swiss, _t ("Courier")//Terminal Courier//npitchandfamily ); HWND Hshelltext=GetDlgItem (Hwnd,idc_txt_shell); SendMessage (Hshelltext,wm_setfont, (WPARAM) Hfont,true);
It's like a lot.
Make edit ctrl look like a DOS