|
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
|
|
|
|
|
i think you can use these functions once no
if(m_list.GetCurSel!=LB_ERR)
{
pop1= new CPopupDlg();
pop1->Create(IDD_DIALOG1,this);
}...repeat
whitesky
|
|
|
|
|
i used the same thing but not getting the desired result
|
|
|
|
|
check for return from these functions
BOOL o=EnableWindow and BOOL o=ShowWindow
if o=1 so this function is run else no
whitesky
|
|
|
|