{"id":20061938,"url":"https://github.com/katahiromz/linenumedit","last_synced_at":"2025-07-15T11:33:21.405Z","repository":{"id":74404457,"uuid":"375631707","full_name":"katahiromz/LineNumEdit","owner":"katahiromz","description":"textbox with line numbers in Win32/C++","archived":false,"fork":false,"pushed_at":"2025-05-03T13:11:18.000Z","size":47,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-03T14:23:45.699Z","etag":null,"topics":["custom-controls","cxx","edit-control","line-number","line-numbers","superclassing","text-box","textbox","win32","win32api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/katahiromz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":["katahiromz"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2021-06-10T08:49:19.000Z","updated_at":"2025-05-03T13:11:22.000Z","dependencies_parsed_at":"2025-02-09T01:21:36.103Z","dependency_job_id":"5c5a70f2-b265-479f-95d1-1fed333c259b","html_url":"https://github.com/katahiromz/LineNumEdit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/katahiromz/LineNumEdit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katahiromz%2FLineNumEdit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katahiromz%2FLineNumEdit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katahiromz%2FLineNumEdit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katahiromz%2FLineNumEdit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/katahiromz","download_url":"https://codeload.github.com/katahiromz/LineNumEdit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/katahiromz%2FLineNumEdit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265431967,"owners_count":23764033,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["custom-controls","cxx","edit-control","line-number","line-numbers","superclassing","text-box","textbox","win32","win32api"],"created_at":"2024-11-13T13:26:03.102Z","updated_at":"2025-07-15T11:33:21.308Z","avatar_url":"https://github.com/katahiromz.png","language":"C++","funding_links":["https://github.com/sponsors/katahiromz"],"categories":[],"sub_categories":[],"readme":"# LineNumEdit by katahiromz\n\nLineNumEdit is a C++/Win32 library that implements \"textbox with line numbers\".\n\n![Screenshot](screenshot.png)\n\n- Fully compatible to the Win32 EDIT control.\n- Easily usable in C++.\n- DLL and static supported.\n- Under MIT license.\n\n## How to use this library?\n\nAs static:\n\n```c\n#define LINENUMEDIT_IMPL\n#include \"LineNumEdit.hpp\"\n...\nLineNumEdit::SuperclassWindow(); // Initialize the library\n```\n\nAnd create the `\"LineNumEdit\"` window by\n`CreateWindow`/`CreateWindowEx`/`DialogBox` functions\nwith specifying the window class `\"LineNumEdit\"`.\nSee also [LineNumEdit_test.cpp](LineNumEdit_test.cpp) and [LineNumEdit_test_res.rc](LineNumEdit_test_res.rc).\n\nYou can also use this library even as a DLL:\n\n```c\nLoadLibraryA(\"LineNumEdit\");\n```\n\nAnd create the `\"LineNumEdit\"` window.\n\n## Messages\n\n### `LNEM_SETLINENUMFORMAT` message\n\nSpecifies the format of the line number label. For example, it's `TEXT(\"%d\")`.\n\n- `wParam`: Ignored.\n- `lParam`: The format of `LPCTSTR`.\n- Return value: zero.\n\n### `LNEM_SETNUMOFDIGITS` message\n\nSets the number of digits to indicate the width of the line number column.\n\n- `wParam`: The number of digits.\n- `lParam`: Ignored.\n- Return value: zero.\n\n### `LNEM_SETLINEMARK` message\n\nSets the color of the line number label.\n\n- `wParam`: The line number to set a mark.\n- `lParam`: The `COLORREF` value or `CLR_INVALID`. Use `RGB` macro to get the `COLORREF` value.\n- Return value: zero.\n\n### `LNEM_CLEARLINEMARKS` message\n\nClears the color settings of the line number labels.\n\n- `wParam`: Ignored.\n- `lParam`: Ignored.\n- Return value: zero.\n\n### `LNEM_SETLINEDELTA` message\n\nSpecifies the line number of the top line.\n\n- `wParam`: The line number.\n- `lParam`: Ignored.\n- Return value: zero.\n\n### `LNEM_SETCOLUMNWIDTH` message\n\nSets the width of the line number column.\n\n- `wParam`: The width of the column, in pixels.\n- `lParam`: Ignored.\n- Return value: zero.\n\n### `LNEM_GETCOLUMNWIDTH` message\n\nGets the width of the line number column.\n\n- `wParam`: Ignored.\n- `lParam`: Ignored.\n- Return value: The column width in pixels.\n\n### `LNEM_GETLINEMARK` message\n\nGets the color setting of a line number.\n\n- `wParam`: The line number.\n- `lParam`: Ignored.\n- Return value: The `COLORREF` value or `CLR_INVALID`.\n\n## Contact us\n\nPlease send e-mail to katayama.hirofumi.mz@gmail.com .\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatahiromz%2Flinenumedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkatahiromz%2Flinenumedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkatahiromz%2Flinenumedit/lists"}