Notepad is really simple from a programmer's point of view. It's a window, with an edit box and a menu on it. Ok, so the added complexity is that there's a second window for the find/replace dialog. I suspect that the command-line edit has more lines of code in it, because less is given in the libraries.