HaxeFoundation / HaxeFoundation/hxcpp

im trying to make the window transparent

Open
#995 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

but the code crashes

```haxe
var setWindowLong:cpp.Function< Pointer< Void > ->
Int ->
UInt -> Int, cpp.abi.Winapi> =
Function.getProcAddress("User32.dll", "SetWindowLongA");

var setLayeredWindowAttributes:cpp.Function< Pointer< Void > ->
UInt ->
UInt ->
UInt -> Int, cpp.abi.Winapi> =
Function.getProcAddress("User32.dll", "SetLayeredWindowAttributes");

var getActiveWindow:cpp.Function< Pointer< Void > ->
Pointer< Void >, cpp.abi.Winapi> =
Function.getProcAddress("User32.dll", "GetActiveWindow");

var handle = getActiveWindow(null);

setWindowLong(handle, -20, 0x00080000);
setLayeredWindowAttributes(handle, 0, 0, 0x00000001);
```
help me please
im using flixel
i put this code on the main function on my program's main.hx

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.