Skip to content

wide-char window classes are wrong #24

@Inve1951

Description

@Inve1951

e.g.

zigwin32/win32/ui/controls.zig

Lines 1881 to 1886 in 6777f1d

pub const WC_STATICA = "Static";
pub const WC_STATICW = "Static";
pub const WC_STATIC = "Static";
pub const WC_EDITA = "Edit";
pub const WC_EDITW = "Edit";
pub const WC_EDIT = "Edit";

should be something like

pub const WC_STATICA = "Static";
pub const WC_STATICW = @import("../zig.zig").L(WC_STATICA);
pub const WC_EDITA = "Edit";
pub const WC_EDITW = @import("../zig.zig").L(WC_EDITA);

pub usingnamespace switch(@import("../zig.zig").unicode_mode) {
    .ansi => struct {
        pub const WC_STATIC = WC_STATICA;
        pub const WC_EDIT = WC_EDITA;
    },
    .wide => struct {
        pub const WC_STATIC = WC_STATICW;
        pub const WC_EDIT = WC_EDITW;
    },
    .unspecified => struct {
        pub const WC_STATIC = @compileError("'WC_STATIC' requires that UNICODE be set to true or false in the root module");
        pub const WC_EDIT = @compileError("'WC_EDIT' requires that UNICODE be set to true or false in the root module");
    },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions