LineNumEdit is a C++/Win32 library that implements "textbox with line numbers".
- Fully compatible to the Win32 EDIT control.
- Easily usable in C++.
- DLL and static supported.
- Under MIT license.
As static:
#define LINENUMEDIT_IMPL
#include "LineNumEdit.hpp"
...
LineNumEdit::SuperclassWindow(); // Initialize the libraryAnd create the "LineNumEdit" window by
CreateWindow/CreateWindowEx/DialogBox functions
with specifying the window class "LineNumEdit".
See also LineNumEdit_test.cpp and LineNumEdit_test_res.rc.
You can also use this library even as a DLL:
LoadLibraryA("LineNumEdit");And create the "LineNumEdit" window.
Specifies the format of the line number label. For example, it's TEXT("%d").
wParam: Ignored.lParam: The format ofLPCTSTR.- Return value: zero.
Sets the number of digits to indicate the width of the line number column.
wParam: The number of digits.lParam: Ignored.- Return value: zero.
Sets the color of the line number label.
wParam: The line number to set a mark.lParam: TheCOLORREFvalue orCLR_INVALID. UseRGBmacro to get theCOLORREFvalue.- Return value: zero.
Clears the color settings of the line number labels.
wParam: Ignored.lParam: Ignored.- Return value: zero.
Specifies the line number of the top line.
wParam: The line number.lParam: Ignored.- Return value: zero.
Sets the width of the line number column.
wParam: The width of the column, in pixels.lParam: Ignored.- Return value: zero.
Gets the width of the line number column.
wParam: Ignored.lParam: Ignored.- Return value: The column width in pixels.
Gets the color setting of a line number.
wParam: The line number.lParam: Ignored.- Return value: The
COLORREFvalue orCLR_INVALID.
Please send e-mail to [email protected] .
