|
Is your problem is Height from ComboBox?
|
|
|
|
|
While the answer has already been provided, you might want to consider this class. It is a dynamically self-adjusting combobox.
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi,
I want to fill the background of my dialog box with a JPEG image. I also want to perform some actions , when I click some buttons I created in that image.
How can I make it ?
Thanks in advance....
vinsankar
|
|
|
|
|
|
if you want to fill bacground with image you can use from a brush and attach a picture to brush in WM_CTLCOLOR
-------------
if you want to draw a image dialog use form BitBlt or StretchBlt in WM_PAINT or WM_ERASEBKGND
|
|
|
|
|
WhiteSky wrote: if you want to draw a image dialog use form BitBlt or StretchBlt in WM_PAINT or WM_ERASEBKGND
he might be needing convertor thats return HBITMAP or CBitmap for the JPEG image!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello Mr Alok Gupta,
if he wants to use jpg files he can uses CImage class for read and use CImage::BitBlt(...)
|
|
|
|
|
WhiteSky wrote: if he wants to use jpg files he can uses CImage class for read and use CImage::BitBlt(...)
right you go! ... you can use Alok too.. Hamid!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi all,
I am getting E_NOINTERFACE on calling IHTMLWindow4::get_frameElement.
Here is the simplified code -
CComPtr<IHTMLElement> apElement; <br />
CComPtr<IHTMLDocument2> apElementDoc;<br />
CComPtr<IHTMLWindow2> apElementWindow;<br />
CComQIPtr<IHTMLWindow4> apElementWindow4;<br />
CComPtr<IHTMLFrameBase> apFrameBase2;<br />
<br />
<br />
apElement->get_document(&apElementDoc);<br />
apElementDoc->get_parentWindow(&apElementWindow);<br />
apElementWindow4 = apElementWindow;<br />
apElementWindow4->get_frameElement(&apFrameBase2);
I am recieving IHTMLElement object in my event sink (which I have set up to listen to DIID_HTMLDocumentEvents2).
The HTML element in question is part of an iFrame.
But still get_frameElement returns me E_NOINTERFACE.
Am I doing something wrong here?
Thanks in advance
|
|
|
|
|
Hello i'm trying to use this do-while loop but it seems that it doesn't work the way I like it to:
char szBuffer[18];
do
{
serial.Read(szBuffer,nBuflen,&dwBytesRead);
szBuffer[dwBytesRead] = '\0';
}
while (isspace(szBuffer[0])==0);
|
|
|
|
|
Where are you incrementing the loop ???
What is your requirement exactly ??
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
My question was am I using isspace the right way? should i include or define smth to use isspace? The loop is incremented in the serial.Read(...) function.
|
|
|
|
|
Well isspace returns true if it is a white space character, and false if it's a real character.
Did you post a code fragment, or was it all the code?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
|
Yeah, that just repeats what I said. How is it "wrong"?
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
The loop should continue until I have non-space caractert e.g. szBuffer[0] != ' ' or szBuffer[0] != '\r', well, it doesn't...
|
|
|
|
|
Yeah, I was referring to the post "It is wrong"...
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
So what is the value of szBuffer[0] when the loop terminates?
"Money talks. When my money starts to talk, I get a bill to shut it up." - Frank
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Maybe i'm a bit stupid but looking at your link still let me confused. I still don't get what am I doing wrong.
|
|
|
|
|
|
So, what's the real problem? Does the loop exit immediately? Could be a timing issue. It doesn't seem like you ever do anything with szBuffer, or maybe you left that code out.
Everytime you call serial.Read, it's going to overwrite your szBuffer, and you'll lose what's in it, unless you copy it somewhere.
- S
50 cups of coffee and you know it's on!
|
|
|
|
|
Hi Gurus,
While using FindFile, FindFirstFile, CreateDirectory functions, if the return is INVALID_HANDLE_VALUE do we still need to use the CloseHandle or FindClose functions to close the handle anyways?
Thanks
C++beginer
|
|
|
|
|
ashokvishnu wrote: if the return is INVALID_HANDLE_VALUE
Yes..you need to CloseHandle even if the value is INVALID_HANDLE_VALUE
Appu..
"If you judge people, you have no time to love them."
|
|
|
|
|
|
Did you see MSDN?
From the MSDN:
"INVALID_HANDLE_VALUE indicates failure. To get extended error information, call GetLastError."
|
|
|
|