I need to display 2 GDI+ Gui (with image and text for both), i know how to display 1 GDI+ Gui but i don't know how to display 2 GDI+ Gui ?
Actually i have something like this :
Code: Select all
If !pToken := Gdip_Startup()
{
MsgBox, 48, gdiplus error!, Gdiplus failed to start. Please ensure you have gdiplus on your system
ExitApp
}
Width = 300
Height = 300
Gui, 1: -Caption +E0x80000 +LastFound +AlwaysOnTop +ToolWindow +OwnDialogs
Gui, 1: Show, x0 y0 w300 y300 , test
hwnd1 := WinExist()
hbm := CreateDIBSection(Width, Height)
hdc := CreateCompatibleDC()
obm := SelectObject(hdc, hbm)
G := Gdip_GraphicsFromHDC(hdc)
Gdip_SetSmoothingMode(G, 4)
pBrush := Gdip_BrushCreateSolid(0xaa000000)
Gdip_FillRoundedRectangle(G, pBrush, 0, 130, 130, 20, 6)
Gdip_DeleteBrush(pBrush)
Font = Arial
Gdip_DeleteFontFamily(hFamily)
Options = x5p y330p Centre cbbffffff s16 bold
Gdip_TextToGraphics(G, ""nameDataP2, Options, Font, 120, 40)
pBitmap := Gdip_CreateBitmapFromFile(Pic100)
Gdip_DrawImage(G, pBitmap, 0, 0, Width//2, Height//2, 0, 0, Width, Height)
UpdateLayeredWindow(hwnd1, hdc, x, y, Width//2, Height//2)
SelectObject(hdc, obm)
DeleteObject(hbm)
DeleteDC(hdc)
Gdip_DeleteGraphics(G)
Gdip_DisposeImage(pBitmap)