Click here to Skip to main content
15,886,518 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 245.4K   52.7K   123  
Very simple serial port monitor.
#include "Res.h"

IDC_MAIN_MENU MENU
BEGIN
    POPUP "&File"
    BEGIN
		MENUITEM SEPARATOR
        MENUITEM "E&xit",                IDM_EXIT
    END

	POPUP "&Tool"
	BEGIN
		MENUITEM "Select &Port",		IDM_TOOL_SELECT
		MENUITEM SEPARATOR
		MENUITEM "Star&t",				IDM_TOOL_START
		MENUITEM "Sto&p",				IDM_TOOL_STOP
		MENUITEM SEPARATOR
		MENUITEM "C&lear",				IDM_TOOL_CLEAR
	END

    POPUP "&Help"
    BEGIN
        MENUITEM "&About ...",           IDM_ABOUT
    END
END

IDD_SELECT DIALOGEX 10, 10, 120, 150
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Select port"
FONT 8, "MS Shell Dlg"
BEGIN
	LISTBOX			IDC_PORTLIST, 5, 7, 110, 125, WS_CHILD | WS_VISIBLE | WS_VSCROLL | WS_EX_CLIENTEDGE
    DEFPUSHBUTTON   "OK", IDOK, 35, 130, 50, 14, WS_GROUP
END

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