NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io


#include<windows.h>
#include<stdio.h>
#include<wingdi.h>

LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam){

HDC hdc;
PAINTSTRUCT ps;
HPEN old_pen;

switch(msg){

case WM_PAINT:
hdc=BeginPaint(hwnd,&ps);
old_pen=(HPEN)SelectObject(hdc,GetStockObject(BLACK_PEN));
MoveToEx(hdc,10,10,0);
LineTo(hdc,250,10);
//SetPixel(hdc,10,10,RGB(0,0xFF,0));
SelectObject(hdc,old_pen);
EndPaint(hwnd,&ps);
printf("paintedn");
break;
case WM_CLOSE: DestroyWindow(hwnd); break;
case WM_DESTROY: PostQuitMessage(0); break;
default: return DefWindowProc(hwnd,msg,wParam,lParam);

}

return 0;

}

int main(){



WNDCLASS wnd_cls={0};
wnd_cls.style=0; //CS_NOCLOSE
wnd_cls.lpfnWndProc=WndProc;
wnd_cls.cbClsExtra=0;
wnd_cls.cbWndExtra=0;
wnd_cls.hInstance=0;
wnd_cls.hIcon=LoadIcon(0,IDI_APPLICATION);
wnd_cls.hCursor=LoadCursor(0,IDC_ARROW);
wnd_cls.hbrBackground=0;
wnd_cls.lpszMenuName=0;
wnd_cls.lpszClassName="SimpleWindowsClass";

ATOM wnd_cls_atom=RegisterClass(&wnd_cls);
if(!wnd_cls_atom)printf("Error!n");

HWND wnd_hwnd=
CreateWindowEx(
WS_EX_LAYERED | WS_EX_NOACTIVATE | WS_EX_TOPMOST,
MAKEINTATOM(wnd_cls_atom),
"Simple",
WS_DISABLED | WS_VISIBLE,
0,
0,
GetSystemMetrics(SM_CXSCREEN),
GetSystemMetrics(SM_CYSCREEN),
0,
0,
GetModuleHandle(0),
0);

SetLayeredWindowAttributes(wnd_hwnd,RGB(0xFF,0xFF,0xFF),0,LWA_COLORKEY);
SetWindowLong(wnd_hwnd,GWL_STYLE,0);
ShowWindow(wnd_hwnd,SW_SHOWNORMAL);

MSG msg;
HWND csgo_wnd_hwnd=FindWindow("Valve001","Counter-Strike: Global Offensive");
RECT r={0};
while(1){

while(PeekMessage(&msg,0,0,0,PM_REMOVE)){

TranslateMessage(&msg);
DispatchMessage(&msg);

}
HDC hdc=GetDC(wnd_hwnd);
Rectangle(hdc,60,60,160,160);
ReleaseDC(wnd_hwnd,hdc);
//GetWindowRect(csgo_wnd_hwnd,&r);
//MoveWindow(wnd_hwnd,r.left,r.top,r.right-r.left+1,r.bottom-r.top+1,1);
//UpdateWindow(wnd_hwnd);
Sleep(16);

}

return 0;

}
     
 
what is notes.io
 

Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 14 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.