|
How to drag and drop between CListView and CScrollView?
|
|
|
|
|
The standard drag and drop system should work fine for these controls.
Are you having problems getting the events to fire, or in putting the code in the event handlers?
There are three kinds of people in the world - those who can count and those who can't...
|
|
|
|
|
I need a good sample code to reference. Could somebody tell me which source code is suitable for me to study?
|
|
|
|
|
|
Hi!
Created application is working toooo slow, looks like there are a lot of memory leaks, there are a lot of pointers. So, please, can you advice some effective tool for run-time errors and memory leaks detection in Visual Studio C++?
Thanks!
|
|
|
|
|
In the past I've been using AQTime[^] which works pretty well to detect memory leaks and bottlenecks. But it is not a free tool.
For run-time errors, what do you mean by that exactly ? If you have a run-time error, your program simply stops working...
|
|
|
|
|
|
looks like it is really useful one.
Thanks!
|
|
|
|
|
There is a CTabCtrl on a PropertyPage, size of the CTabCtrl is 450x200 in resource design view.
Now I want to add several dialogs (child of the PropertyPage) as contents of the CTabCtrl.
Size of all child dialogs is 410x150 in resource design view.
It sounds OK for CTabCtrl (450x200) containing dialogs (410x150) in size.
But acturally dialogs are much larger than client area of the CTabCtrl at application runtime, I have to resize dialog size to much smaller in resource design to fit the CTabCtrl - I think it is a bad way.
I realize that dialog and PropertyPage use different unit (or something else).
My question is: how to change dialog unit to let it have same unit as PropertyPage (at runtime or design time), so that the CTabCtrl (450x200) can contain original dialogs (410x150) properly?
|
|
|
|
|
What about the fonts? Are you setting the font on either the dialog or tab control?
The thing that comes to mind is this curly little 1 liner (hidden away in the help for MapDialogRect):
Microsoft wrote: In most cases, the base units for the dialog box are the same as those retrieved by using the GetDialogBaseUnits function. If the dialog box template has the DS_SETFONT style, however, the base units are the average width and height, in pixels, of the characters in the font given by the template.
In other words, if no font is set for the dialog box, the dialog units are based on the size of the system font. If however, a font is specified, then the Dialog Units are based on the size of _that_ font.
|
|
|
|
|
Can anyone point me to documentation on the possible settings for
dwStyle, dwTabbedStyle, dwControlBarStyle in
CDockablePane ???
I cant seem to find them online anywhere.
I'm ultimately trying to either make the tab bar for the Console Window (in the default MFC app) disappear, or at least bring the tabs to the top, and set it to a single tab.
So far everything I've tried has led to not being able to create empty window failures at run time.
Thanks...
|
|
|
|
|
The company I work for uses a software built with COBOL. This software has no API and the only way to interact with it is through its GUI.
My question is: Is there anyway to integrate with such a software without any help from the vendor? For example, if this COBOL software has tow text boxes to enter 2 numbers for addition and gives the answer, is there a way to enter the two numbers programmatically? I am not even so much concerned about the answer it provides but just to automate data entry.
Please let me know if you need clarification.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
CodingYoshi wrote: ...is there a way to enter the two numbers programmatically? I am not even so much concerned about the answer it provides but just to automate data entry.
Can you use calls to FindWindow() and SendMessage() ? Not bullet-proof, but it might get you by.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
use spy++ tool to find, does cobol window provide you any windo handle
|
|
|
|
|
ThatsAlok does cobol window provide you any windo handle
How do I find out? If I can get a handle to the window, how would I go about finding the child controls to send keystrokes to? For example, how do I control sending name to a text box which accepts name of new employee or something similar.
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|
|
Hi I am trying to create a server that would accept and receive message from multiple client. But i am receiving SOCKET_ERROR while my server seems to accept the multiple connection. Could anyone correct my code.
Here is the code I wrote..
CMysocket m_sListenSocket;
<pre>void CLocalDlg::OnAccept(void)
{
CMysocket *pSocket = new CMysocket;
if(m_sListenSocket.Accept(*pSocket))
MessageBox("Connection Accepted");
}
For receiving:
<pre>void CLocalDlg::OnReceive(void)
{
CMysocket *pSocket = new CMysocket;
char *pBuff = new char[1024];
int stlen = 1025;
int iRcvd;
iRcvd = pSocket->Receive(pBuff, stlen);
if(iRcvd ==SOCKET_ERROR)
MessageBox("Received socket error");
else
MessageBox("Message Received properly");
}
|
|
|
|
|
Did you preview your post? The <pre> tags are not working.
reddy07 wrote: iRcvd = pSocket->Receive(pBuff, stlen);
What is pSocket connected to?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Yes, tags are not working. I posted in hurry. I will take care next time when i post.
Thanks David!!! Yes, I realized every time OnReceive is invoked new pSocket is created. Then, how to initialize pSocket saying it is previously connected.
|
|
|
|
|
Alo,
Pero perdon.
Gracias.
Adias
Troy
|
|
|
|
|
Hello to everyone,
I was wandering how to create a framework in C++ and a search on Google for some tutorials but I wasn't able to find anytihng
Can anyone suggest my a good tutorial on how to create a framework?
Thanks
|
|
|
|
|
See point #2 in this post[^]
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
Sorry
I want to create a web content filter program for Windows Server 2008 using the WPF[^] with plug-in support.
I already created plug-ins in the form of DLLs and loaded them dinamically but now I wanted to create a framework to support the plug-ins (something like the windows API for Win32 applications)
|
|
|
|
|
Stifly wrote: but now I wanted to create a framework to support the plug-ins
So what? Go ahead. What is stopping you?
|
|
|
|
|
I don't know exactly how to do it and I couldn't find a guide or a tutorial, can anyone tell me were I can find one?
|
|
|
|
|
The reason you are not getting answers is because there is NO answer to your question. Only you can come with the answer to your question. If I had the same question, I would look for examples rather than answers. For example, analyze MFC to see what it offers and how. MFC is a good framework and will give you many ideas. You can also, study the architecture of .NET (although) some think .NET is not a framework.
You can also read the book on CSLA by Rockford Lhotka who creates a whole framework within the book.
Once again, this will just give you fundamental ideas--like a book on OOP--however, creating a good framework is more of a style of thinking rather than following a strict methodology. Art is involved in addition to engineering.
Good luck!
CodingYoshi
Visual Basic is for basic people, C# is for sharp people. Farid Tarin '07
|
|
|
|