|
Thank you!! It did the trick!
See ya!
|
|
|
|
|
Add a handler for WM_CREATE in CChildFrame and there ShowWindow(SW_MAXIMIZE);
|
|
|
|
|
Hello friends,
I am using a TVisualObject class given by Zoran M. Todorovic
I am able to split and place the tabs but one of the splitted window is occupying the entire space.I tried with changing the parametrew of CSize fn but its not working.i have attached the piece of code.Please suggest me to resize the window.
TVisualObject *pSplitter = new TVisualObject(1,"", 2, 1, pContext);
TVisualObject *pView1 = new TVisualObject(2,0,0,pContext, RUNTIME_CLASS(CDummyEdit), CSize(0,880));
TVisualObject *pView12 = new TVisualObject(13,0,0,1,2,pContext);
TVisualObject *pw12 = new TVisualObject(14,0,0,pContext,RUNTIME_CLASS(CDummyEdit),CSize(330,30));
TVisualObject *pw22 = new TVisualObject(15,0,1,pContext,RUNTIME_CLASS(CDummyEdit),CSize(0,80));
TVisualObject *pViewtab1 = new TVisualObject(3,1,0,pContext,RUNTIME_CLASS(TTabWnd),CSize(770,660));
TVisualObject *pTabView1 = new TVisualObject(4,"Log",pContext,RUNTIME_CLASS(CDummyEdit));
TVisualObject *pTabView2 = new TVisualObject(5,"Summary", pContext,RUNTIME_CLASS(CDummyTree));
//pTabView2->SetIcon(IDR_FINALTYPE);
m_Framework.Add(pSplitter);
m_Framework.Add(pSplitter, pView12);
m_Framework.Add(pView12,pw12);
m_Framework.Add(pView12,pw22);
m_Framework.Add(pSplitter, pViewtab1);
m_Framework.Add(pViewtab1,pTabView1);
m_Framework.Add(pViewtab1,pTabView2);
m_Framework.Create(this);
TVisualFrameworkIterator it(m_Framework);
while (!it.End()) {
TVisualObject *pObject = it.Get();
it++;
}
m_Framework.SetActivePane(pView12);
return TRUE;
|
|
|
|
|
I have not been able to find a simple way to show only the minimize or maximize buttons on the title bar. Whether or not I include WS_SYSMENU in the createstruct.style, it seems the WS_MAXIMIZEBOX and WS_MINIMIZEBOX bits only enable/disable the functions of the boxes, but they both seem to show regardless of the settings. Is there any simple way to show only one of the boxes? Or do I have to get out of MFC and create my own main frame window? Thanks for any suggestions.
|
|
|
|
|
Hi all,
I need to check in my MFC 7 application whether a particular directory exists.
How can I do this?
I know how to create a directory, but not how to check whether it exists or not.
Thanks so much!
-- narada
|
|
|
|
|
BOOL PathFileExists(
LPCTSTR pszPath
);
|
|
|
|
|
Thanks so much!
Just what I needed!
-- narada
|
|
|
|
|
how to create a modeless dialog window which behaves exactly the same as the "downloading window" from the Windws OS. what I really mean? I don't want this window to disapper when i minimize the main application. If i minimize the dialog I want to place it on the task bar, not on the main screen.
Waiting for your advices....
|
|
|
|
|
try making the modeless dialog a child of the desktop, not of the main application. do this in the "Create" call to the modeless dlg. that should fix the minimize issue you describe.
-c
Image tools: ThumbNailer, Bobber, TIFFAssembler
|
|
|
|
|
This is my problem. I have to draw some lines over a media player control while it's displaying a video, and I can't do it. I just can do it if I don't load the video. Anyone can help me?
|
|
|
|
|
hello,
in CHtmlView how detect the user click on a link, and how get the link URL.
I want to block Ad popup, so i do :
void CSpy4WebView::OnNewWindow2(LPDISPATCH* ppDisp, BOOL* Cancel)
{
*Cancel = true;
}
that's why i want to detect if the new window is ad, or if the new window is called by the user.
thx for your help.
|
|
|
|
|
|
Thx Joan,
i'm trying to understand your code but it is hard for me...
|
|
|
|
|
You are welcome, the article was written in order to get the feedback from other CPians, so ask whatever you need and tell me whatever you think that should be improved.
|
|
|
|
|
Hello,
I work with CHtmlView, and i want to know the url of activate frame.
You know how to get this ?
thx in advance
|
|
|
|
|
I want to get the range of a window from other app not my app.
I used ::GetScrollRange() function but always failed.
can anyone tell me whether i can get to the purpose or not?
if yes would you please tell me how?
your helpful advice will be apriciate.
|
|
|
|
|
friends ,
Can u help me with some code which will detect a file if it s aMPEG-1 file or not ????
|
|
|
|
|
Is it possible to convert const unsinged char* to unsinged char*. If yes tell me how.
Reply me soon
|
|
|
|
|
Hm... why don't you try it?
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = (unsigned char*)a;
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
Using the C++ casts this could be written as:
const unsigned char* a = NULL;
unsigned char* b = NULL;
b = const_cast< unsigned char* >(a);
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
baah.. same sh*t!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
*raise index finger*
Maybe, but I AM more correct!
*index finger pointing at you*
;P
< edit >It still remains evil to cast a const away.
Big design flaw!< /edit >
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
jhwurmbach wrote:
but I AM more correct
Yes you are!
I'm going to update my current project and remove all C casting sh*t and replace it with C++ castings!
Rickard Andersson@Suza Computing
C# and C++ programmer from SWEDEN!
UIN: 50302279
E-Mail: nikado@pc.nu
Speciality: I love C#, ASP.NET and C++!
|
|
|
|
|
use const_cast <unsigned char*=""> (YourConstVariable)
|
|
|
|
|
ups, typo - it should read :
const_cast<unsigned char*>(YourConstVariable)
|
|
|
|