Skip to content

Commit

Permalink
improve background fetching routines
Browse files Browse the repository at this point in the history
reversed engineered windows 7 authui's routine for fetching the HBITMAP for the background graphic, it now should play well with different resolutions
  • Loading branch information
wiktorwiktor12 committed Jul 6, 2024
1 parent 098080b commit f20e736
Show file tree
Hide file tree
Showing 34 changed files with 373 additions and 46 deletions.
Binary file added ConsoleLogonUI/resources/5031.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5032.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5033.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5034.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5035.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5036.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5037.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5038.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5039.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5040.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5041.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5042.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5043.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5044.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5045.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5046.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5047.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5048.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5049.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5050.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5051.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5052.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5053.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5054.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5055.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ConsoleLogonUI/resources/5056.jpg
28 changes: 27 additions & 1 deletion ConsoleLogonUI/resources/ConsoleLogonUI.rc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,33 @@ IDB_SPINNER2 BITMAP "Bitmap5001.bmp"
IDB_SPINNER3 BITMAP "Bitmap5002.bmp"
IDB_SPINNER4 BITMAP "Bitmap5003.bmp"
IDB_SPINNER5 BITMAP "Bitmap5004.bmp"
IDB_BG BITMAP "IMAGE5035.bmp"
IDB_BG IMAGE "5031.jpg"
IDB_BG2 IMAGE "5032.jpg"
IDB_BG3 IMAGE "5033.jpg"
IDB_BG4 IMAGE "5034.jpg"
IDB_BG5 IMAGE "5035.jpg"
IDB_BG6 IMAGE "5036.jpg"
IDB_BG7 IMAGE "5037.jpg"
IDB_BG8 IMAGE "5038.jpg"
IDB_BG9 IMAGE "5039.jpg"
IDB_BG10 IMAGE "5040.jpg"
IDB_BG11 IMAGE "5041.jpg"
IDB_BG12 IMAGE "5042.jpg"
IDB_BG13 IMAGE "5043.jpg"
IDB_BG14 IMAGE "5044.jpg"
IDB_BG15 IMAGE "5045.jpg"
IDB_BG16 IMAGE "5046.jpg"
IDB_BG17 IMAGE "5047.jpg"
IDB_BG18 IMAGE "5048.jpg"
IDB_BG19 IMAGE "5049.jpg"
IDB_BG20 IMAGE "5050.jpg"
IDB_BG21 IMAGE "5051.jpg"
IDB_BG22 IMAGE "5052.jpg"
IDB_BG23 IMAGE "5053.jpg"
IDB_BG24 IMAGE "5054.jpg"
IDB_BG25 IMAGE "5055.jpg"
IDB_BG26 IMAGE "5056.jpg"


IDB_EDITDISABLED BITMAP "11000.bmp"
IDB_EDITACTIVE BITMAP "11001.bmp"
Expand Down
Binary file removed ConsoleLogonUI/resources/IMAGE5035.bmp
Binary file not shown.
18 changes: 9 additions & 9 deletions ConsoleLogonUI/resources/Main.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
<duixml>
<stylesheets>
<style resid="LogonStyle">

<if id="atom(MainFrame)">
<element background="gradient(rgb(0,132,217), rgb(0,36,58), 1)" accessible="true" accrole="9" accname="Logon Frame"/>
</if>
<if class="status">
<element background="argb(0,0,0,0)" foreground="argb(255,255,255,255)" shadowintensity="75" fontsize="18pt" fontstyle="Shadow" padding="rect(24rp,0,0,100rp)"/>
</if>


<if id="atom(Background)">
<element background="resbmp(113,4,-1,0,0,0,0)"/>
</if>

<if class="passwordBox">
<edit width="225rp" height="25rp" font="resstr(11800)" shadowintensity="75" margin = "rect(0rp, 3rp, 0rp, 3rp)" padding="rect(0rp, 1rp, 0rp, 0rp)" borderthickness = "rect(4, 4, 4, 4)"
bordercolor="gray" accessible="true" accrole="42" background="resbmp(11003, 7,-1,0,0,1,1)" passwordcharacter="9679"/>
Expand Down Expand Up @@ -101,10 +98,13 @@
</stylesheets>


<element resid="Main" layout="flowlayout(1,2,2,2)" sheet="LogonStyle">
<duiBackgroundWindow width="2560rp" height="1600rp" id="atom(InsideFrame)" layout="filllayout()">
<element resid="Main" sheet="LogonStyle" layout="verticalflowlayout(1,2,2,2)" id="atom(MainFrame)">
<duiBackgroundWindow layout="filllayout()" width="2560rp" height="1600rp" background="gradient(rgb(0,132,217), rgb(0,36,58), 1)" id="atom(InsideFrame)">
<element layout="flowlayout(0, 0, 0, 0)" padding="rect(5rp,5rp,5rp,5rp)" > <!--TODO: style this -->
<element id="atom(LanguageBarParent)" layout="filllayout()" visible="false"/>
</element>
<!--This is the footer for the branding and the options buttons such as the shutdown,ease of access and power options-->
<element layout="borderlayout()" id="atom(Background)">
<element layout="borderlayout()">
<element id="atom(SoftKeyboardParent)" layout="borderlayout()" layoutpos="none" />
<element id="atom(Options)" layoutpos="bottom" visible="true" enabled="true" layout="filllayout()" background="argb(0,116,184,252)" height="96rp">

Expand Down
27 changes: 26 additions & 1 deletion ConsoleLogonUI/resources/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,32 @@
#define IDB_SPINNER3 110
#define IDB_SPINNER4 111
#define IDB_SPINNER5 112
#define IDB_BG 113
#define IDB_BG 5031
#define IDB_BG2 5032
#define IDB_BG3 5033
#define IDB_BG4 5034
#define IDB_BG5 5035
#define IDB_BG6 5036
#define IDB_BG7 5037
#define IDB_BG8 5038
#define IDB_BG9 5039
#define IDB_BG10 5040
#define IDB_BG11 5041
#define IDB_BG12 5042
#define IDB_BG13 5043
#define IDB_BG14 5044
#define IDB_BG15 5045
#define IDB_BG16 5046
#define IDB_BG17 5047
#define IDB_BG18 5048
#define IDB_BG19 5049
#define IDB_BG20 5050
#define IDB_BG21 5051
#define IDB_BG22 5052
#define IDB_BG23 5053
#define IDB_BG24 5054
#define IDB_BG25 5055
#define IDB_BG26 5056

#define IDB_EDITDISABLED 11000
#define IDB_EDITACTIVE 11001
Expand Down
Loading

0 comments on commit f20e736

Please sign in to comment.