Category : win32gui

I created a window with Win32s, I wish it could handle incoming messages from another thread in addition to typical windows messages. I’m using this piece of code: while (dataAvailable || GetMessage(&msg, nullptr, 0, 0)) { // if (!TranslateAccelerator(msg.hwnd, hAccelTable, &msg)) if (dataAvailable == true) { cout << "My thread message/signal!" << endl; dataAvailable = ..

Read more

I’m developing file sync client for windows. I use ReadDirectoryChangesW api for detecting file event(modifying, remove, create, etc.). But this function(ReadDirectoryChangesW) can’t detect modifying NTFS ADS area. For example, When eml file is created, OS System add ADS on this file.(stream name is OECustomProperty). In this case, My Client can’t distinguish between main stream and ..

Read more

I’m developing file sync client for Windows. I use ReadDirectoryChangesW API for detecting file events (modifying, remove, create, etc.). But ReadDirectoryChangesW reports NTFS ADS changes same as file modifications. For example, when eml file is created, OS System add ADS on this file. (stream name is OECustomProperty). In this case, My Client can’t distinguish between ..

Read more

I want to embed a picture with a black background in another picture of green woods. But I discovered the TransparentBlt() function cannot work. While I embed a picture with a white background, the function works properly. Why? This is my code: HBITMAP hbm = (HBITMAP)LoadImage(NULL, L"bg.bmp", IMAGE_BITMAP, 1280, 720, LR_LOADFROMFILE); HBITMAP hbm3 = (HBITMAP)LoadImage(NULL, ..

Read more