Home > Software engineering >  Baidu cloud login interface is DirectUI, or other technology do?
Baidu cloud login interface is DirectUI, or other technology do?

Time:11-10

Baidu cloud login interface is DirectUI, or other technology do?
Heard that is made of NWJS, but do not understand how he output text,
A test, I recently doing to HOOK API access to the login screen, in the form of text, see this interface will be called DrawTextW to output text to a compatible DC, but the back won't copy it into the real window above the DC, that is to say, after on the compatible DC output text didn't pass the BitBlt, StretchBlt, GdiTransparentBlt, PatBlt and AlphaBlend function to copy the content of the compatible DC to DC real window above, could you tell me how did he realize this?

CodePudding user response:

DirectUI is achievable,
Please pay attention to SOUI and REDM these two open source projects,

https://gitee.com/setoutsoft/soui
https://gitee.com/hgy413/REDM

CodePudding user response:

Duiengine
Baidu network backup folder has duiengine license. TXT

CodePudding user response:

refer to the second floor this is not a duck head response:
duiengine
Baidu network backup folder has duiengine license. TXT

Do you know the working mechanism for text output?

Thank you, I'll go to look at

CodePudding user response:

reference 1st floor libaineu2004 response:
DirectUI is achievable,
Please pay attention to SOUI and REDM these two open source projects,

https://gitee.com/setoutsoft/soui
https://gitee.com/hgy413/REDM


I really don't want to implement the interface, I just want to know how he output text, on the compatible DC output text is how to copy the real window DC come up

CodePudding user response:

reference 1st floor libaineu2004 response:
DirectUI is achievable,
Please pay attention to SOUI and REDM these two open source projects,

https://gitee.com/setoutsoft/soui
https://gitee.com/hgy413/REDM


Looked at a few examples of SOUI, text is through the output to DC compatible DC then AlphaBlend function to the window, is not the same as network backup log interface the baidu, baidu network backup didn't see a copy compatible with DC to DC window, is very confusing,

CodePudding user response:


Can through the memory DC output text, drawing and so on, and then post the picture window DC, realize the drawing,

CodePudding user response:

refer to 6th floor smwhotjay response:

Can through the memory DC output text, drawing, etc., and then post the picture window DC, drawing,


Well, the general should be the same, but the problem is that he is how the memory DC to DC on the window? I didn't see him call BitBlt, StretchBlt GdiTransparentBlt, PatBlt on DC and AlphaBlend function to copy the memory DC to the window,

CodePudding user response:

Then also found that the use of the window: : RedrawWindow (HWND, & amp; Rc, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ALLCHILDREN | RDW_INTERNALPAINT); Cannot be forced to refresh all words
  • Related