|
Is it possible to have multiple FrameWnds in a SDI App? What i want to do is have my main SDI FrameWnd(which contains a splitter and views within the splitters), and call up a dialog that contains a splitter window and different views of my current open document. So i thought i would just be better to have the that Dialog actually be an aux FrameWnd. Can you have multiple frame windows? I want my mainframe to stay my mainframe but i want to bring this other FrameWnd up when needed (modelessly). Is this possible in MFC Doc/View?
|
|
|
|
|
Hi
Yes you can. You must destroy the old frame and create the new one. Look for the swsplit.exe sample in the Microsoft knowledge database. This shows you how.
Woody
|
|
|
|
|
Hi...
I'm looking for a C function which detects a key pressed. For example a function like IsKeyPressed() which returns a boolean... The function must return immediately without waiting until a key is pressed.
Thanks for your help
Hello World!!!
from Raphaël
|
|
|
|
|
|
|
thanks a lot...
Hello World!!!
from Raphaël
|
|
|
|
|
GetAsyncKeyState() is a Windows function that will tell you the state of a particular key.
|
|
|
|
|
Knowing that IE supports gzip'd files, is the API, hidden or otherwise, available in Win32?
Todd Smith
|
|
|
|
|
gzip in IE is a custom protocol handler. Lookup the registry at this place : HKCR \ PROTOCOLS \ Filters \ gzip (as well as deflate).
If for any reason you want to take advantage of the built-in IE gzip library, then I believe you have to host the protocol handler, as explained here[^]. But, getting the library gzip.org might just be as fine....;)
|
|
|
|
|
I want to insert a new line between subjects in a CString variable.
For example, instead of
"Grade A Grade B Grade C"
I want the text saved in a database as
"Grade A
Grade B
Grade C"
I tried doing something like this
str1 + '\n' | str2 + '\n' + str3
But this does not insert a new line.
-Elizabeth
Eilzabeth
|
|
|
|
|
Elizabeth Chang wrote:
I tried doing something like this
str1 + '\n' | str2 + '\n' + str3
Can you please post the exact code you are using?
What database are you using? Some databases may expect a carriage-return line-feed pair for the end of a line (that is "\r\n" or 0x0d0a).
Dave
http://www.cloudsofheaven.org
|
|
|
|
|
The string "\r\n" works on both saving to the database (Oracle) and displaying on a CEdit control. Here is the syntax I used:
str1 + "\r\n" + str2 + "\r\n" + str3
Thank you.
-Elizabeth
Eilzabeth
|
|
|
|
|
Check out <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/vcrefcstringinsert.asp">CString::Insert</a>[<a target=_blank title='New Window' href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcmfc98/html/vcrefcstringinsert.asp">^</a>]
-Nick Parker
|
|
|
|
|
Any one knows how to format text from a static control, such as text in a dialog box. I'd like to be able to bold, subscript, italicize,... the text. Thx,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
|
I have MDI MFC+ATL app. Application supports scripting ( SmartHost etc) VbScript/Jscript.
Vb/J Script requires all calls to come from the same thread (except InteruptThread)...
Obvious solution is to create dedicated thread, this thread will waitForSingleObject(command). Once command recieved thread will execute code and return data to caller thread.
Caller thread will be blocked via semaphore or event until execution completed.
Is there a similiar com solution? Multiple callers - single thread execution?
B
|
|
|
|
|
Hello.
I have a very preposterous problem. I have a ListView class.
Sa i want when i click on a column in the header control, an event to be manipulated in my ListView class. So i thought the clear decision is to use ClassWizard and to add a message handler for the event HDN_ITEMCLICK :
this is the method generated by ClassView
<br />
void CRegDlg::OnItemclickList1(NMHDR* pNMHDR, LRESULT* pResult) <br />
{<br />
HD_NOTIFY *phdn = (HD_NOTIFY *) pNMHDR;<br />
AfxMessageBox("a");
*pResult = 0;<br />
}<br />
Yes, but ... noo. When i press a header control column nothing happens ?
Why it is?
Can anyone help me.
|
|
|
|
|
I've created an explorer bar two different ways...one way using registry settings and another using ATL and COM. Both ways show up when I click a button on the toolbar. I want to show an HTML page in the explorer bar. This is easy with the registry settings, but I need to do other processing as well, which I don't know how to do with the registry solution. The ATL COM way I don't know how to get the HTML page to show up but I can do the other processing.
My question is: does anyone know either know how to get ahold of the explorer bar that is created by the registry entries so I can do additional processing (if that's even possible)? Or can anyone give me some advice on how to show an HTML page in the explorer bar I've created using ATL COM?
Thanks for your help.
Melinda
|
|
|
|
|
I am trying to set the fields of the packet which I am sending using winpcap But I am unable to set the true fields of ethernet packet using winpcap.
These fields are
pcap_data[0]...........pcap_data[5] //ethernet destination address
pcap_data[6]...........pcap_data[11] //ethernet source address
I am setting in these fields with the Mac of source and destination like
1 pcap_data[0]=00;
2 pcap_data[1]=50;
3 pcap_data[0]=8D;
But line 3 is giving errors I do not know exactly what to fill I s it Hexadecimal or binary or anything else
Please help me with certain example that may be sending packet or help me in solving the problem.
Reply me soon
|
|
|
|
|
Hi, I am a newbie to programming. Need to program a video conference application, that sends the video from the local to the other side connected by LAN. Needs to preview the window locally as well.
I have managed to do that, using <vfw.h>, using Win32 API programming style. Only the preview i mean.
Having difficulty to get the "previewed" video to be sent over the other end, using sockets i suppose. Dun have any idea how to implement this.
I looked up Netmeeting SDK already, but am not able to make use of that, because i need to tweak my video frames when they are being sent out, according to different configurations. Thus, i have to implement my own.
On a tight schedule now, everything with the GUI needs to be done in 3 weeks time, still blur with programming. Hope some kind soul out there able to shed some light.
Thanks and regards.
p.s-> pls send email to <extremalis@catcha.com>
extremalis
|
|
|
|
|
Found it on PSC:
http://www.planet-source-code.com/vb/scripts/BrowseCategoryOrSearchResults.asp?optSort=Alphabetical&blnWorldDropDownUsed=TRUE&txtMaxNumberOfEntriesPerPage=10&blnResetAllVariables=TRUE&lngWId=1&txtCriteria=netmeeting
|
|
|
|
|
Tks for the tip. However, jus to note, this programme in VB does not include the "video streaming" codes both in the exe version and the compilable version. So its not that free afterall.
Anyway, thank you for this tip.
|
|
|
|
|
|
I created a VC++ app that calls a VB created ActiveX DLL, but its returns a failure when I execute the CoCreateInstance function for the COM handle.
|
|
|
|
|
Did you call the CoInitialize or CoInitializeEx on the beginning of your application? (every thread - including main thread of the application must have initialize the support for COM subsystem to be able to use it)
|
|
|
|