//===============================================================
// vtextc.h - Text Output Command Class - Windows
//
// Copyright (C) 1995,1996  Bruce E. Wampler
//
// This file is part of the V C++ GUI Framework, and is covered
// under the terms of the GNU Library General Public License,
// Version 2. This library has NO WARRANTY. See the source file
// vapp.cxx for more complete information about license terms.
//===============================================================
#ifndef VTEXTC_H
#define VTEXTC_H
#include <v/vcmd.h>	// We are derived from vcmd
#include <v/vcmdprnt.h>	// need PPElement

  class V_EXPORT vCmdParent;

  class V_EXPORT vTextCmd : public vCmd
  {
    public:  //---------------------------------------- public
      vTextCmd(vCmdParent* dp, CommandObject* co);
      virtual ~vTextCmd();
      virtual void initialize(void);
      virtual void SetCmdVal(ItemVal val, ItemSetType st);
      virtual void SetCmdStr(VCONST char* str);
      virtual int DRAWITEM(int id, OWNERITEM* hwnd);

      // Internal Methods
      MRESULT vTextProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);

    protected:  //--------------------------------------- protected
    private:	//--------------------------------------- private
      PPElement _PPColor[5];
      PVOID _orgTextProc;
  };
#endif
