github.com/secoba/wails/v2@v2.6.4/internal/frontend/desktop/windows/winc/init.go (about)

     1  //go:build windows
     2  
     3  /*
     4   * Copyright (C) 2019 The Winc Authors. All Rights Reserved.
     5   * Copyright (C) 2010-2013 Allen Dang. All Rights Reserved.
     6   */
     7  
     8  package winc
     9  
    10  import (
    11  	"github.com/secoba/wails/v2/internal/frontend/desktop/windows/winc/w32"
    12  )
    13  
    14  func init() {
    15  	gControllerRegistry = make(map[w32.HWND]Controller)
    16  	gRegisteredClasses = make([]string, 0)
    17  
    18  	var si w32.GdiplusStartupInput
    19  	si.GdiplusVersion = 1
    20  	w32.GdiplusStartup(&si, nil)
    21  }