Yes it's posible...
case WM_DRAWITEM:
pdis = (LPDRAWITEMSTRUCT) lParam;
switch (pdis->CtlID)
{
case CONTROLID:
Type: Posts; User: jagi
Yes it's posible...
case WM_DRAWITEM:
pdis = (LPDRAWITEMSTRUCT) lParam;
switch (pdis->CtlID)
{
case CONTROLID:
Try to use HWND as argument of function and then take HDC from HWND...
I know that but isn't good. I must do it myself
Hi. I'm trying to write function to resizing images. Below is function which do that but only in x axis and scale = 50%, 25%, 12,5% etc. I need function resizing image in x and y axis with any scale....
Hi. How can I check number of memory, allocated by malloc() function ?
If you want to make winXP icons use photoshop with trial plug-in "iconbuilderxp"...
iconbuilderxp-110.zip
It's a code of function changing kontrast of bitmap. But it don't work that I want. Maybe someone saw how loooks changing contrast in PhotoShop. I want to reach the same effect... In attaching image...
yes yes it works :D at last :D thanks for help my master :D
I thought that it works, but it works only for mask with RGB(128,128,128).
Example
Bitmap RGB(185,185,185)
Mask RGB(0,0,0)
Background RGB(100,0,0)
RED (185 + 100) * (0 / 256) = 285 * 0 = 0...
it works :) thanks, I was looking for it, I didn't know that is so easy :) Big thanks my master :) ;)
but what if 12x12 pixel in the mask is gray ? it doesn't work...
first = bitmap
second = mask
third = background
fourth = last effect
I want to display bitmap using mask on every background
I'm attaching example
I tried to use ROP code but it doesn't...
I have one more question. I want to display bitmaps using grayscale mask.
I have 3 bitmaps.
First - created by epfTakeScreenShot
Second - mask bitmap from resource
Third - bitmap to display with...
You have right... I'll do that :)
epfTakeScreenShot Function works correctly, I tested it and display screens as DDB, but epfConvertDDBtoDIB don't work...
// epfTakeScreenShot.cpp
#include <windows.h>
#include "engine.h"
HBITMAP epfTakeScreenShot(HWND hwnd, int xPos, int yPos, int cx, int cy)
{
HDC hdc, hdcMem;
HBITMAP hBitmap;
Ok. I know what was wrong, before send pointer as function's parameter I must book memory...
BITMAPINFO * pbmiBk = new BITMAPINFO;
BYTE * pBitsBk = new BYTE[size];
But something is still...
Why?
BYTE * pBitsBk; // wrong ?
BYTE * pBitsBk = 0; // corect ?
It doesn't load DDB. I use it to Load DIB bitmap - API doesn't include it.
#include <windows.h>
#include "engine.h"
BOOL epfShowBitmap(HDC hdc, int xPos, int yPos,BITMAPFILEHEADER * pbmfh, BITMAPFILEHEADER * pbmfhMask, int iFlag)
{
static BITMAPINFO * pbmi, *...
Hello. (sorry for mistakes) I'm taking part of screen and saving it as DDB. And now I'm trying to convert DDB to DIB using GetDIBits function
int GetDIBits(
HDC hdc, // handle to...
thanks
Hello. I have a problem, I don't know how to take window's handle having device's context... If you don't understood me, I'll try explaine it more precisely...