|
Thanks for your reply. i already go through the code. here clistctrl is custom draw. but the combo is not. the sample u mension is combox is fully owner draw. i thnk u can understand my problem.
Have A Nice Day!
Murali.M
|
|
|
|
|
u got two ways
either increase the the height of row in listctrl to the height of combobox( This can be done by handling the measure item message )
or Decrease the height of the combobox by changing the font size
nave
|
|
|
|
|
How to get saved as the bitmap(DIB) the whole html document with the scrollbars that is with the part which is not visible on the screen but visible when the the document is scrolled.
As i m able to save the page which is displayed on the screen as the bitmap(DIB)in webbrowser application but i want to save the whole page and i m getting the whole page height and width through the get_scrollheight() and get_scrollwidth() but the page is not saved as while creating the DIB the window pointer is passed so what to do so that whole page get saved???
Regards
Shikha
Pune
|
|
|
|
|
Well not sure if this will work but since no one answered try this
Get the HWND to the main IE window and get its DC then try saving that DC to a bitmap the whole window along with the scroll bars should be saved.
You know you're obsessed with computer graphics when you're outside and you look up at the trees and think, "Wow! That's spectacular resolution!"
|
|
|
|
|
Thanks for reply
i have yet not tried what u said i will try that and let u know
Thanks
Regards
Shikha
|
|
|
|
|
Do you use IHTMLElementRender::DrawToDC to obtain the bitmap? Does it clip the exceeded areas?
|
|
|
|
|
i write a code to call the popup dialog to fix in the main dialog.
pop1= new CPopupDlg();
pop1->Create(IDD_DIALOG1,this);*/
pop1->ShowWindow(SW_SHOW);
but i want to disable that dialog under some condition.
how can i do this
|
|
|
|
|
Can you be more specific
whitesky
|
|
|
|
|
sree_as wrote: but i want to disable
pop1->EnableWindow( FALSE );
nave
|
|
|
|
|
pop1->ShowWindow(SW_HIDE);
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
_AnShUmAn_ wrote: pop1->ShowWindow(SW_HIDE);
How could this function disables a dialog? it hides the dialog. isn't it?
nave
|
|
|
|
|
i tried
pop1->showWindow(SW_HIDE);
pop1->EnableWindow(false);
not working
some more please
sree
|
|
|
|
|
try
pop1->ModifyStyle( 0, WS_DISABLED );
nave
|
|
|
|
|
|
if you use pop1->showWindow(SW_HIDE); why use pop1->EnableWindow(false);?
you hide window and you want to disable it
whitesky
|
|
|
|
|
i mean tried one after one
|
|
|
|
|
when u called
pop1->showWindow(SW_HIDE);
did the dialog become invisible?
nave
|
|
|
|
|
|
From where did u created this dialog?
And from where( which function ) r u trying to hide/Disable it?
nave
|
|
|
|
|
in CListBox we have a Function OnSelectChange().when the selection in the list box change then i call this dailog by
writing following code
if(m_list.GetCurSel==LB_ERR)
{
}
else
{
pop1= new CPopupDlg();
pop1->Create(IDD_DIALOG1,this);
pop1->ShowWindow( SW_SHOW );
}
once i change the selection i want to disable that dialog .
|
|
|
|
|
Then where do u want to write pop1->EnableWindow( FALSE );
I thing ur getting another pointer while calling
pop1->EnableWindow( FALSE );
nave
|
|
|
|
|
when we want select another one then it will check if condition if it is true then i will keep that EnableWinbow().
but t's not working
|
|
|
|
|
try modifying the function like this
static CPopupDlg pop1;
if( 0 == pop1.m_hWnd )
{
pop1.Create(IDD_DIALOG1,this);
pop1.ShowWindow( SW_SHOW );
}
if( /*the condition*/ )
{
// Disable the dialog
pop1.EnableWindow( FALSE );
}
else
{
// enable the dialog
pop1.EnableWindow( TRUE );
}
nave
|
|
|
|
|
enable is done but disable is not working.
i think this enable also due to pop1.ShowWindow(SW_SHOW);
without pop2.EnableWindow( TRUE ) also we can get the dialog.
but without pop1.ShowWindow(SW_SHOW); not getting the dialog
|
|
|
|
|
send me the code i will check and tell
nave
|
|
|
|