Click here to Skip to main content
15,896,359 members
Articles / Desktop Programming / Win32

Simple Serial Port Monitor

Rate me:
Please Sign up or sign in to vote.
4.94/5 (35 votes)
1 May 2012CPOL9 min read 246.8K   52.7K   123  
Very simple serial port monitor.
#pragma once

#include "Windows.h"

class CDkListBox
{
public:
	CDkListBox(void);
	CDkListBox(HWND hPar, HINSTANCE hInst);
	~CDkListBox(void);
	bool Create(int iLeft, int iTop, int iWidth, int iHeight);
	bool Create(HWND hPar, HINSTANCE hInst, int iLeft, int iTop, int iWidth, int iHeight);
	void Destroy(void);
	bool AddStringItem(const wchar_t *szStrItem);
	bool DeleteStringItem(void);
	void ClearItems(void);
	void Resize(RECT rc);

private:
	HWND m_hWnd;
	HWND m_hPar;
	HINSTANCE m_hInst;
};

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Indonesia Indonesia
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions