v27: weather flyout with sun and cloud icon, ZIP code in settings
This commit is contained in:
@@ -1127,6 +1127,9 @@ func wndProc(hwnd, m, wparam, lparam uintptr) (result uintptr) {
|
||||
case wmDropFiles:
|
||||
dropFiles(hwnd, wparam)
|
||||
return 0
|
||||
case wmWxDone:
|
||||
weatherDone()
|
||||
return 0
|
||||
case wmMouseWheel:
|
||||
// Scrolling over the volume icon changes the volume. The wheel
|
||||
// position arrives in screen coordinates, so make it relative to the bar.
|
||||
@@ -1184,6 +1187,7 @@ func wndProc(hwnd, m, wparam, lparam uintptr) (result uintptr) {
|
||||
return 0
|
||||
case wmDestroy:
|
||||
previewShutdown()
|
||||
weatherShutdown()
|
||||
abd := appBarData{Hwnd: hwnd}
|
||||
appBar(abmRemove, &abd)
|
||||
pKillTimer.Call(hwnd, timerID)
|
||||
@@ -1244,6 +1248,7 @@ func main() {
|
||||
loadPinned()
|
||||
loadOrderKeys()
|
||||
loadIconMode()
|
||||
loadZip()
|
||||
|
||||
hdc, _, _ := pGetDC.Call(0)
|
||||
dpi, _, _ := pGetDeviceCaps.Call(hdc, logPixelsX)
|
||||
@@ -1297,6 +1302,7 @@ func main() {
|
||||
}
|
||||
hwndMain = hwnd
|
||||
previewInit(inst)
|
||||
weatherInit(inst)
|
||||
enableFileDrop(hwnd)
|
||||
refreshAutostartPath()
|
||||
|
||||
@@ -1325,6 +1331,7 @@ func main() {
|
||||
refreshApps(true)
|
||||
positionBar(hwnd)
|
||||
pSetTimer.Call(hwnd, timerID, 250, 0)
|
||||
weatherRefresh(false) // have the forecast ready before the cloud is first clicked
|
||||
|
||||
var m msg
|
||||
for {
|
||||
|
||||
Reference in New Issue
Block a user