HaxeFoundation / HaxeFoundation/hxcpp
im trying to make the window transparent
- 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.