Exemple #1
0
/****************************************************************************
*			      text_OnCtlColorEdit
* Inputs:
*       HWND hwnd: Window handle of parent window
*       HDC hdc: Display context for child window
*       HWND hchild: Window handle of child window
*       int type: CTLCOLOR_EDIT is the only value we care about
* Result: HBRUSH
*       Background brush, COLOR_BACKGROUND, always
*       NULL, always -- use default brush for class
* Effect:
*       Sets the text color
****************************************************************************/
static HBRUSH text_OnCtlColorEdit(
  HWND hwnd,
  HDC hdc,
  HWND hchild,
  int type)
  {
   return FORWARD_WM_CTLCOLOREDIT(hchild, hdc, hchild, SendMessage);
  }
Exemple #2
0
static HBRUSH text_OnCtlColorEdit(
  HWND hwnd,
  HDC hdc,
  HWND hchild,
  int type)
  {
#if WIN_MCW
#pragma unused(type)
#pragma unused(hwnd)
#endif
   return FORWARD_WM_CTLCOLOREDIT(hchild, hdc, hchild, SendMessage);
  }