windows-rs icon indicating copy to clipboard operation
windows-rs copied to clipboard

Feature request: convenience macros/functions

Open Razordor opened this issue 3 years ago • 1 comments

Motivation

certain macros such as MAKEINTRESOURCE, and GET_X_LPARAM aren't in windows-rs which would make using functions like LoadImage inconvenient. Adding convenience macros would make useability easier.

Drawbacks

Drawback could be further bloating the crate

Rationale and alternatives

convenience macros could be const functions, or declarative macros.

Additional context

No response

Razordor avatar Aug 25 '22 01:08 Razordor

Duplicate of #641

riverar avatar Aug 25 '22 04:08 riverar

...and #921 and #1205 and #1445...

I'm beginning to think we should do something about this. Maybe make a windows-rsEx crate? 😆

ryancerium avatar Aug 25 '22 05:08 ryancerium

Yep, a dedicated crate for macros seems appropriate.

kennykerr avatar Aug 25 '22 13:08 kennykerr