A
A
Alexanqp2017-03-18 10:05:02
C++ / C#
Alexanqp, 2017-03-18 10:05:02

How to draw your own window in C/C++ without winapi?

How to draw your own window in C / C ++ to set dragging, minimizing, closing yourself? What is the most hardcore way? In a word, completely create a window from scratch.
Thanks to those who responded.

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Armenian Radio, 2017-03-18
@gbg

No way. You won't get to graphics without WinApi, even if you write your own driver.

D
Dmitry, 2017-03-18
@TrueBers

You can write your explorer shell in OpenGL or DirectX, for example. Better yet, go to work, you will be busy there.

R
RedHairOnMyHead, 2017-03-18
@ThePyzhov

WinAPI for that and API to communicate with the system. Nothing without him.

X
x67, 2017-03-18
@x67

What about qt?
If the author meant the reluctance to personally use winapi, then this is the way out

1
15432, 2017-03-18
@15432

The most-most hardcore? Probably direct recording to the video buffer and your USB driver for the mouse. That is, you draw absolutely all elements of the window yourself, pixel by pixel, and communicate with the mouse at the USB packet level, while drawing the cursor and responding to movements and clicks.
This is much easier to do in DOS, where Windows does not interfere with its drivers and others.

S
sitev_ru, 2017-03-19
@sitev_ru

I immediately did it on WinApi, but the teacher said that it's simple and you need to do it yourself, somehow draw a window, etc.)

Perhaps the following was meant: you need to create an empty window, without frames and a title, and then, for example, using GDI functions (or GDI +, OpenGL, DirectX), draw this window, use Windows messages to catch mouse events, and then implement it yourself "window"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question