|
Hellew fellow citizens.
I wish to create CSplitterWnd that looks like:
+-------+----+
|Viewww1|View|
+-------+""""+
|Viewww2|""""|
+-------+----+
I've read Daniel Zuppingers article, but it's too much. Doe's anybody has
an easier solution???
Do help. plz.
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
That is quite easy if you know how to do it.
In your CChildFrame::OnCreateClient you do:
CSplitterWnd first;
CSplitterWnd secondleft;
CSplitterWnd secondright;
first.CreateStatic(this, 1, 2);
secondleft.CreateStatic(&first, 2, 1, WS_CHILD|WS_VISIBLE|WS_BORDER, first.IdFromRowCol(0,0));
secondright.CreateStatic(&first, 2, 1, WS_CHILD|WS_VISIBLE|WS_BORDER, first.IdFromRowCol(0,1));
secondleft.createView(0,0,...);
secondleft.createView(1,0,...);
secondleft.createView(0,0,...);
secondleft.createView(1,0,...); Hope this has helped a little
|
|
|
|
|
Hellew fellow citizens.
I wish to create CSplitterWnd that looks like:
+-------+----+
| | |
+-------+ +
| | |
+-------+----+
I've read Daniel Zuppingers article, but it's too much. Doe's anybody has
an easier solution???
Do help. plz.
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
Every time I try to access the msdn help I get the message : "Attempting to use an invalid compled help (.chm) file." This happened yesterday and I can't fix it. I re-installed both VC++ and MSDN but nothing. I wonder if the service pack which I installed yesterday has anything to do with this (version 5). Please help, I virus scanned and everything. My last option will be a full format which I don't want to do!
|
|
|
|
|
hi all,
i have the source code for QuakeII for windows...it is a VC++ project....when i build the project on a system with win2000, it compiles the project but is not able to compile the asm files...i downloaded MASM compiler but i have no idea, as to what am i suposed to do.....this is the error which i get when i try to build the project,
linking *.asm
"'ml' is not recognised as an internal command"
* is replaced by the asm file...
i need help
u hv been buzzzzzed by JUMBO JET
|
|
|
|
|
Well ml comes with VC. it must be in your directory of VC98 incase of Visual Studio or will be in VC7 for VS.Net.
Anyway you have to register the environment variables. To do this run vcvars.bat in vc98 directory. Otherwise do following for win2k or winxp.
Go to System properties by right clicking on MyComputer. and in advanced tab click on Environment Variables. There in system variables in the bottom list find Path and edit it so that you append path to vc98 directory like this.
c:\program files\XXXX\VC98
You have to give path of VC98 not ml.exe.
The paths are separated with semi colons. So place semicolon before appending your this path.
|
|
|
|
|
Hello,
INTRODUCTION.
In my app. it would be great for me to be able to show the user some information in HTML, nowadays I'm using three controls (two static controls one that shows graphs, the other shows an image) and a RichEditCtrl that shows detailed information in order to represent information about the field that the user is editing.
ENVIRONMENT:
Visual C++ 6.
Win2k SP3.
QUESTION.
It would be great for me to integrate HTML in my dialog based app in order to be able to show all that information depending on DHTML files.
Thank you in advance.
Regards.
|
|
|
|
|
You can use Paul DiLascia's CHtmlCtrl (click here[^]) which is merely a wrapper around CHtmlView .
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
As Joaquín has pointed out, Paul's CHtmlCtrl class is ideal. Here's[^] an example of how I used it in a dialog.
/ravi
Let's put "civil" back in "civilization"
http://www.ravib.com
ravib@ravib.com
|
|
|
|
|
Anybody know how to get the hot spot coordinates from the cursor.
Best regards,
Eugene Pustovoyt
|
|
|
|
|
Hello,
I got to do the following: write a programm, that lists the windows with handle by using GetWindow(GW_HWNDFIRST) in a CListBox component. That works so far. Next, when I select a window from the listbox, the proggy shall clear that CListBox and list all the childs of the selected window with handle and so on. Recursive, everytime I select a listitem. That doesn't work. How can I get a complete CWnd-Object if I only got a hWnd window handle?
ThanX
kind regards, Hendrik
|
|
|
|
|
FindWindowEx()
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++!
|
|
|
|
|
FindWindowEx returns a hWnd... how to get a CWnd from a HWnd?
|
|
|
|
|
Hendrik7EQ wrote:
FindWindowEx returns a hWnd... how to get a CWnd from a HWnd?
CWnd* pWnd = CWnd::FromHandle(hWnd);
|
|
|
|
|
Thanx, sounds fine... I'll try... Okay, I got the CWnd to a tab control... how do I get the child elements of the second or third page of a tab control? I only get the handles to the child elements of the first tab control page.
|
|
|
|
|
Can any one help me with using a ADO Record
object in VC++
i just want to display the first record retrieved from the table using ADO record object.
|
|
|
|
|
Do you mean Recordset or Record?
Have a look here http://www.codeproject.com/database/#ADO[^]
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
a Record
|
|
|
|
|
I am writing an AppWizard, which I would like, amongst other things, to generate and name certain folders in the File View section of the Workspace.
Does anybody know how to generate folders that are name differently from the usual "Source Files", "Header Files" and "Resources" folders.
|
|
|
|
|
hi,
i'm using odbc with my application.. i was able to execute sql statment in odbc, using pDB->m_pDatabase->ExecuteSQL("select * from [table]"), but i don't know how to get the result from the ExecuteSQL function after the query has been successfully executed.. can someone plz show me how the query results are obtained from the ExecuteSQL function.. thank you!
|
|
|
|
|
You can't get results from an ExecuteSQL call.
From MSDN
Create the command as a null-terminated string. ExecuteSQL does not return data records. If you want to operate on records, use a recordset object instead.
Most of your commands for a data source are issued through recordset objects, which support commands for selecting data, inserting new records, deleting records, and editing records. However, not all ODBC functionality is directly supported by the database classes, so you may at times need to make a direct SQL call with ExecuteSQL.
Michael
Life’s not a song.
Life isn’t bliss.
Life is just this.
It’s living. -- Buffy the Vampire Slayer: Once more, with feeling
|
|
|
|
|
What I tend to do is derive a class from CRecordset for each "query" i have, then change the GetDefaultSQL() function so that the default SQL statement (used to return rows from the database) can be built from things like member variables which you can set from your app. Then calling Open() on your CRecordset derived class opens the database using the default SQL statment you specified in GetDefaultSQL() .
Hope this helps
-Alex
|
|
|
|
|
I need to do multicasting on our local university LAN(ethernet).
Ive been tryin to make a MADCAP(Multicast Address Dynamic Client Allocation Protocol) client to do this (MADCAP is an API in teh platform SDK). We have configured a MADCAP server at the server end.
im tryin to get the address through McastRequestAddress() function but it returns a value of 87 which probably stands for an invlid parameter
here is the code:
void CMainFrame::OnMulticast()
{
DWORD m_chk, m_chk1, m_chk2, m_chk_last;
PDWORD pVersion = new DWORD;
*(pVersion) = 1;
m_chk2 = McastApiStartup(pVersion);
//for parameter 2
LPMCAST_CLIENT_UID pRequestID = new MCAST_CLIENT_UID;
pRequestID->ClientUID = new unsigned char[17];
for(int c=0; c<17; c++)
{
pRequestID->ClientUID[c] = c;
}
pRequestID->ClientUIDLength = 17;
m_chk1 = McastGenUID(pRequestID);
//for parameter 3
PDWORD pScopeCount = new DWORD;
PMCAST_SCOPE_ENTRY pScopeList = new MCAST_SCOPE_ENTRY [90] ;
PDWORD pScopeLen = new DWORD;
*pScopeLen = 90;
m_chk = McastEnumerateScopes(AF_INET, TRUE, pScopeList, pScopeLen, pScopeCount);
PMCAST_SCOPE_CTX pScopeCtx = &(pScopeList->ScopeCtx);
//for parameter 4
PMCAST_LEASE_REQUEST pAddrRequest = new MCAST_LEASE_REQUEST;
pAddrRequest->LeaseStartTime = 0;
pAddrRequest->LeaseDuration = 0;
pAddrRequest->AddrCount = 1;
pAddrRequest->pAddrBuf = new BYTE[4];
for(int i=0; i<4; i++)
{
pAddrRequest->pAddrBuf[i] = pScopeList->LastAddr.IpAddrV6[i];
}
pAddrRequest->ServerAddress = pScopeList->ScopeCtx.ServerID;
//for parameter 5
PMCAST_LEASE_RESPONSE pAddrResponse = new MCAST_LEASE_RESPONSE;
pAddrResponse->pAddrBuf = new BYTE[4];
//the real thing
m_chk_last = McastRequestAddress(AF_INET, pRequestID, pScopeCtx, pAddrRequest, pAddrResponse);
}
There are no examples given with this API
can any one please guide me as to which parameter am i passing incorrectly.
Or tell me some other way through which i can multicast on LAN.
I'd be really grateful
|
|
|
|
|
Hi,
In want to include an address bar in my application, somewhat like IE has. I use a CDialogBar to accomplish this. On the CDialogBar is a CStatic and a CEdit control. My problem is that I cannot find a way to respond to sizing messages for the CDialogBar. I want the CStatic control to stay the same size and the CEdit control to cover the rest of the CDialogBar. When the CDialogBar gets bigger or smaller, so should the CEdit control.
Can anyone help me here.
Thanks,
Woody
|
|
|
|
|
I've read a quote from MSDN document. Can any one tell me the meaning of "atomic" in this quote:
The InterlockedExchangeAdd function performs an atomic addition of an increment value to an addend variable. The function prevents more than one thread from using the same variable simultaneously.
|
|
|
|