wcombox.hpp

来自「开放源码的编译器open watcom 1.6.0版的源代码」· HPP 代码 · 共 31 行

HPP
31
字号
#ifndef wcombox_class
#define wcombox_class

#include "wcontrol.hpp"
#include "wstring.hpp"

WCLASS WComboBox : public WControl
{
	public:
		WEXPORT WComboBox( WWindow* parent, const WRect& r, char* text, WStyle wstyle=CBS_HASSTRINGS|CBS_DROPDOWNLIST|WS_VSCROLL );
		WEXPORT ~WComboBox();
		void WEXPORT onChanged( WObject* obj, cb changed );
		void WEXPORT onDblClick( WObject* obj, cb dblClick );
		bool WEXPORT processCmd( WORD id, WORD code );

		WString WEXPORT getString( int index );
		void WEXPORT insertString( char* s, int index=-1 );
		void WEXPORT deleteString( int index );
		void WEXPORT reset();
		int WEXPORT count();
		int WEXPORT selected();
		void WEXPORT select( int index );
	private:
		WObject*	_changedClient;
		cb		_changed;
		WObject*	_dblClickClient;
		cb		_dblClick;
};

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?