Skip to content

Instantly share code, notes, and snippets.

@Temptationx
Temptationx / remove border.c
Last active January 1, 2016 04:19
remove window border win32api
LONG lStyle = GetWindowLong(hwnd, GWL_STYLE);
lStyle &= ~(WS_CAPTION | WS_THICKFRAME | WS_MINIMIZE | WS_MAXIMIZE | WS_SYSMENU);
SetWindowLong(hwnd, GWL_STYLE, lStyle);
LONG lExStyle = GetWindowLong(hwnd, GWL_EXSTYLE);
lExStyle &= ~(WS_EX_DLGMODALFRAME | WS_EX_CLIENTEDGE | WS_EX_STATICEDGE);
SetWindowLong(hwnd, GWL_EXSTYLE, lExStyle);
SetWindowPos(hwnd, NULL, 0,0,0,0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER | SWP_NOOWNERZORDER);
class viewWeb;
class view{
public:
virtual ~view() {}
static view* creat();
protected:
view() { }
};
class viewWeb : public view{
public:
// For UUID
#include <Rpc.h>
#pragma comment(lib, "Rpcrt4.lib")
int _tmain(int argc, _TCHAR* argv[])
{
// Create a new uuid
UUID uuid;
RPC_STATUS ret_val = ::UuidCreate(&uuid);
@Temptationx
Temptationx / gist:7170016
Last active December 26, 2015 14:59
dlopen, dlsym
#include <stdio.h>
#include <dlfcn.h>
void ppp()
{
}
int main(int argc, const char * argv[])
{