What is the raw text field code

Maybe I can get some negative points in this question, but, really, this question has been stunning in my mind from the last few days that what is the main / raw code for the text field (or other such controls).

I mean, I understand that we can inherit the text field class and make our own changes, we create its object and use it.

but wants to know how this class creates a text field (a design that allows us to enter text) (the same request for other components), is it a C language code that generates it using CG (computer graphics) programming or any other thing .

Experts, please allow my curiosity.

thank

+5
source share
3 answers

Windows provides several basic APIs for drawing on the screen. You can draw pixels, lines, rectangles, and more complex geometric shapes. There is also an API for drawing text. Other APIs allow you to respond to user input, for example. mouse movement and clicks and keyboard input.

API , , . Windows . , , , . Windows API .

TextBox Windows Forms, Windows . GDI. , WPF, TextBox, , , WPF, DirectX.

+7

, :

TextBox Control Windows API, Handles .

Windows UI, GDI, GDI+, DirectX. , , .

These controls use each window WinProcto receive Input Notificationand other callbacks that notify these controls when pressed, entered, or, for example, resized.

+3
source

All Articles