Dragging borderless windows in MFC void CXXXXDialog::OnLButtonDown(UINT nFlags, CPoint point) { PostMessage(WM_NCLBUTTONDOWN, HTCAPTION, MAKELPARAM(point.x, point.y)); } Remember to add message mapping, otherwise this code will not work. change: Moving a standard window is achieved by clicking the window title bar with the mouse, but for a window without a title bar, you need to use […]
Tag: gin
Nginx supports SNI certificate, which has been used by ssl_server_name
I have compiled some information online and recorded it here for your reference What is SNI? In traditional application scenarios, a server corresponds to an IP address and a domain name, using a certificate containing domain name information. With the popularization of cloud computing technology, the virtual machine in the cloud has an IP, corresponds […]
CentOS7 builds a topology to achieve access from different network segments, remote login via Telnet and SSH, and establishes a log server
Topology construction Topology External network connection vmnet8 network card Network configuration Requirements GW three network cards, ens32 automatically obtains IP, can connect to the external network ens 33 static IP 192.168.1.254 ens 34 static IP 172.16.1.254 Client static IP 192.168.1.100 Server static IP 172.16.1.100 Server can connect to Client vmnet configuration In VMware Edit -> […]
Vue3-video-play video player plugin
Article directory 1. Function overview 2. User Guide Install start using 3. Basic Example 4. Hls m3u8 video/live broadcast 5. Props `props` attribute `controlBtns` button description 6. Events 7. Shortcut key description 1. Function list Tip: [email protected] and above must be used Support shortcut key operations Support multiple playback settings Support mirror screen settings Support […]
JS reverse engineering practice 23 – wss URL encryption + request header + ws sending and receiving in a certain city
Statement All content in this article is for learning and communication only. Packet capture content, sensitive URLs, and data interfaces have been desensitized. Commercial and illegal use is strictly prohibited. Otherwise, all consequences arising therefrom will have nothing to do with the author. If there is any infringement , please contact me to delete immediately! […]
Rockchip RK3399 – GPIO&PWM fan debugging
————————————————– ————————————————– ————————– Development board: NanoPC-T4 Development board eMMC: 16GBLPDDR3: 4GB Display: 15.6 inches HDMI interface display u-boot: 2023.04linux :6.3 ————————————————– ————————————————– ————————– 1. Circuit schematic diagram The NanoPC-T4 development board I use can be connected to an external cooling fan. Let’s first introduce the cooling fan hardware related content. 1.1 Circuit Schematic Diagram The […]
c# MVC paging control helper class
c# uses mvc paging control /// <summary> /// Get the pseudo-static page number display link /// </summary> /// <param name=”curPage”>Current page number</param> /// <param name=”countPage”>Total number of pages</param> /// <param name=”url”>Hyperlink address</param> /// <param name=”extendPage”>The upper limit of the number of surrounding page numbers to display</param> /// <returns>Page number html</returns> public static string GetStaticPageNumbers(int curPage, […]
shiro integrates springboot login and logout
Create a new springboot project and import dependencies <?xml version=”1.0″ encoding=”UTF-8″?> <project xmlns=”http://maven.apache.org/POM/4.0.0″ xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd”> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.7.16</version> <relativePath/> <!– lookup parent from repository –> </parent> <groupId>com.shrimpking</groupId> <artifactId>springboot-67</artifactId> <version>0.0.1-SNAPSHOT</version> <name>springboot-67</name> <description>Demo project for Spring Boot</description> <properties> <java.version>1.8</java.version> </properties> <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <optional>true</optional> </dependency> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-test</artifactId> <scope>test</scope> […]
Login reverse process of a certain data center
Private equity data center login reverse process login_url : aHR0cHM6Ly9kYy5zaW11d2FuZy5jb20v Statement: This article is for study and research only. It is prohibited to be used for illegal purposes. Otherwise, you will be responsible for the consequences. If there is any infringement, please inform us to delete it. Thank you! (Manual dog head) 1. Fill in […]
FastDFS+Nginx builds a local file server
FastDFS is an open source lightweight distributed file system that manages files. Its functions include: file storage, file synchronization, file access (file upload, file download), etc., solving the problems of large-capacity storage and load balancing. It is especially suitable for online services based on files, such as photo album websites, video websites, etc. FastDFS is […]