Click here to Skip to main content
16,010,394 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Icon association with non-executable file Pin
PJ Arends3-Sep-05 9:59
professionalPJ Arends3-Sep-05 9:59 
AnswerRe: Icon association with non-executable file Pin
Ravi Bhavnani4-Sep-05 6:44
professionalRavi Bhavnani4-Sep-05 6:44 
AnswerRe: Icon association with non-executable file Pin
Gary R. Wheeler4-Sep-05 6:50
Gary R. Wheeler4-Sep-05 6:50 
QuestionAnyone can help me about Html Help Workshop? Pin
Anonymous3-Sep-05 1:54
Anonymous3-Sep-05 1:54 
AnswerRe: Anyone can help me about Html Help Workshop? Pin
Gary R. Wheeler3-Sep-05 2:18
Gary R. Wheeler3-Sep-05 2:18 
QuestionFinding the same function in VC++ Pin
KaGeU3-Sep-05 0:09
KaGeU3-Sep-05 0:09 
AnswerRe: Finding the same function in VC++ Pin
toxcct3-Sep-05 0:29
toxcct3-Sep-05 0:29 
GeneralRe: Finding the same function in VC++ Pin
KaGeU3-Sep-05 0:46
KaGeU3-Sep-05 0:46 
In the program this is for working with video stream in avi files...

Here is full class:
class PASCALIMPLEMENTATION TBitmap : public TGraphic
{
typedef TGraphic inherited;

private:
TBitmapImage* FImage;
TCanvas* FCanvas;
bool FIgnorePalette;
bool FMaskBitsValid;
bool FMaskValid;
TColor FTransparentColor;
TTransparentMode FTransparentMode;
void __fastcall Changing(System::TObject* Sender);
void __fastcall CopyImage(HBITMAP AHandle, HPALETTE APalette, const tagDIBSECTION &DIB);
void __fastcall DIBNeeded(void);
void __fastcall FreeContext(void);
TCanvas* __fastcall GetCanvas(void);
virtual HBITMAP __fastcall GetHandle(void);
TBitmapHandleType __fastcall GetHandleType(void);
virtual HBITMAP __fastcall GetMaskHandle(void);
bool __fastcall GetMonochrome(void);
TPixelFormat __fastcall GetPixelFormat(void);
void * __fastcall GetScanline(int Row);
TColor __fastcall GetTransparentColor(void);
void __fastcall NewImage(HBITMAP NewHandle, HPALETTE NewPalette, const tagDIBSECTION &NewDIB, bool
OS2Format, Classes::TStream* RLEStream);
void __fastcall ReadStream(Classes::TStream* Stream, int Size);
void __fastcall ReadDIB(Classes::TStream* Stream, unsigned ImageSize);
void __fastcall SetHandle(HBITMAP Value);
virtual void __fastcall SetHandleType(TBitmapHandleType Value);
void __fastcall SetMaskHandle(HBITMAP Value);
void __fastcall SetMonochrome(bool Value);
void __fastcall SetPixelFormat(TPixelFormat Value);
void __fastcall SetTransparentColor(TColor Value);
void __fastcall SetTransparentMode(TTransparentMode Value);
bool __fastcall TransparentColorStored(void);
void __fastcall WriteStream(Classes::TStream* Stream, bool WriteSize);

protected:
virtual void __fastcall Changed(System::TObject* Sender);
virtual void __fastcall Draw(TCanvas* ACanvas, const Windows::TRect &Rect);
virtual bool __fastcall GetEmpty(void);
virtual int __fastcall GetHeight(void);
virtual HPALETTE __fastcall GetPalette(void);
virtual int __fastcall GetWidth(void);
void __fastcall HandleNeeded(void);
void __fastcall MaskHandleNeeded(void);
void __fastcall PaletteNeeded(void);
virtual void __fastcall ReadData(Classes::TStream* Stream);
virtual void __fastcall SetHeight(int Value);
virtual void __fastcall SetPalette(HPALETTE Value);
virtual void __fastcall SetWidth(int Value);
virtual void __fastcall WriteData(Classes::TStream* Stream);

public:
__fastcall virtual TBitmap(void);
__fastcall virtual ~TBitmap(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall Dormant(void);
void __fastcall FreeImage(void);
virtual void __fastcall LoadFromClipboardFormat(Word AFormat, unsigned AData, HPALETTE APalette);
virtual void __fastcall LoadFromStream(Classes::TStream* Stream);
void __fastcall LoadFromResourceName(unsigned Instance, const AnsiString ResName);
void __fastcall LoadFromResourceID(unsigned Instance, int ResID);
void __fastcall Mask(TColor TransparentColor);
HBITMAP __fastcall ReleaseHandle(void);
HBITMAP __fastcall ReleaseMaskHandle(void);
HPALETTE __fastcall ReleasePalette(void);
virtual void __fastcall SaveToClipboardFormat(Word &Format, unsigned &Data, HPALETTE &APalette);
virtual void __fastcall SaveToStream(Classes::TStream* Stream);
__property TCanvas* Canvas = {read=GetCanvas};
__property HBITMAP Handle = {read=GetHandle, write=SetHandle, nodefault};
__property TBitmapHandleType HandleType = {read=GetHandleType, write=SetHandleType, nodefault};
__property bool IgnorePalette = {read=FIgnorePalette, write=FIgnorePalette, nodefault};
__property HBITMAP MaskHandle = {read=GetMaskHandle, write=SetMaskHandle, nodefault};
__property bool Monochrome = {read=GetMonochrome, write=SetMonochrome, nodefault};
__property TPixelFormat PixelFormat = {read=GetPixelFormat, write=SetPixelFormat, nodefault};
__property void * ScanLine[int Row] = {read=GetScanline};
__property TColor TransparentColor = {read=GetTransparentColor, write=SetTransparentColor, stored=TransparentColorStored
, nodefault};
__property TTransparentMode TransparentMode = {read=FTransparentMode, write=SetTransparentMode, default=0
};
};

In the program used next:
Graphics::TBitmap* FThumb;

and

FThumb->Width = lpbih->biWidth;
FThumb->Height = lpbih->biHeight;

But where is in that class Width and Height I don`t know...
QuestionShortcut keys - Runtime? Pin
G Haranadh2-Sep-05 23:39
G Haranadh2-Sep-05 23:39 
AnswerRe: Shortcut keys - Runtime? Pin
Jose Lamas Rios4-Sep-05 20:20
Jose Lamas Rios4-Sep-05 20:20 
QuestionUnicode Release? Pin
G Haranadh2-Sep-05 23:13
G Haranadh2-Sep-05 23:13 
AnswerRe: Unicode Release? Pin
Michael Dunn2-Sep-05 23:17
sitebuilderMichael Dunn2-Sep-05 23:17 
GeneralRe: Unicode Release? Pin
G Haranadh2-Sep-05 23:24
G Haranadh2-Sep-05 23:24 
General[Msg Deleted] Pin
sunit53-Sep-05 0:21
sunit53-Sep-05 0:21 
GeneralRe: Unicode Release? Pin
G Haranadh3-Sep-05 0:26
G Haranadh3-Sep-05 0:26 
AnswerRe: Unicode Release? Pin
Jose Lamas Rios3-Sep-05 11:23
Jose Lamas Rios3-Sep-05 11:23 
Questionproblem in cutting string Pin
Ankit Aneja2-Sep-05 23:07
Ankit Aneja2-Sep-05 23:07 
AnswerRe: problem in cutting string Pin
Michael Dunn2-Sep-05 23:14
sitebuilderMichael Dunn2-Sep-05 23:14 
GeneralRe: problem in cutting string Pin
Ankit Aneja2-Sep-05 23:34
Ankit Aneja2-Sep-05 23:34 
AnswerRe: problem in cutting string Pin
ThatsAlok3-Sep-05 0:12
ThatsAlok3-Sep-05 0:12 
GeneralRe: problem in cutting string Pin
Ankit Aneja3-Sep-05 0:46
Ankit Aneja3-Sep-05 0:46 
JokeRe: problem in cutting string Pin
ThatsAlok3-Sep-05 1:50
ThatsAlok3-Sep-05 1:50 
GeneralRe: problem in cutting string Pin
Ankit Aneja3-Sep-05 2:24
Ankit Aneja3-Sep-05 2:24 
GeneralRe: problem in cutting string Pin
Prakash Nadar3-Sep-05 16:02
Prakash Nadar3-Sep-05 16:02 
QuestionHow to use ExecWB method? Pin
Roozbeh692-Sep-05 22:07
professionalRoozbeh692-Sep-05 22:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.