|
I've done this before - I used one form to hold three flex grids, only one to be shown at a time and full screen, so I used ShowWindow to show and hide the items relevant to each view, creating the illusion of multiple forms.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I need to use 100% of the screen to do drawing. However, as you know, there are "title bar, menu bar, tool bar, status bar" on the windows. How can I make them disappear? Also, because the last person doing this program started the program as SDK (single document), so I cannot open a new separate document, can someone help me?
|
|
|
|
|
There's an article in the Jan 99 Windows Developers Journal titled "Implementing Full-Screen Mode in MFC" by Adrian Hill that looks like it might help.
Or, if you just want to work in a new window, you might want to check out my Gribble1 article.
|
|
|
|
|
Can you tell me where can I find this Journal without going to library? Because I need to fix the problem now.....
Thanks
|
|
|
|
|
Well, I don't think its online - you might try Mike Blasjkdjclckw's (hope I got that right) sample FULLY.ZIP here
|
|
|
|
|
To go into a full screen mode, just resize the window so the toolbar is above the top edge, and if you have a status bar, it is below the bottom. The only problem is if a system is multi monitor and the monitors are stacks vertically (unlikely, but possible ), then the toolbar or status bar will show on the other monitor. I don't know if there is another solution, but the WJD site (www.wdj.com ) will allow you to download the source code for the month in question, so you can always have a look and see.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi,
I have created a TreeViwe control with the WS_EX_DLGMODALFRAME extended style.
The application of this style results in a horizontal scrollbar for this treeview window. The scroll thumb is also very small, making the treeview area about 10 times as wide as necessary.
How can I prevent this, and get e reasonable scrollbar, like the windows explorer?
TIA
|
|
|
|
|
Hi!
Is there any tool available that
- extracts the resources (string, dialog, ...)
- has an easy UI so that a translator can translate the separated resources
- putting the translation to the original source, besides the source language
?
I'm quite sure the is such a program but I haven't any idea what it was named...
Thank you!
Ciao,
Alex
|
|
|
|
|
I'm not sure of if this program will do everything you need but it does allow resource (de)compilation from an executable and has a easy gui.
http://www.rpi.net.au/%7Eajohnson/resourcehacker/
|
|
|
|
|
Hello, the codegurus around the world.
Now, I'm working the localization of our product.
The previous developer made some program to get the string from RC file, and get back the
translated string to the original RC file.
(I can't provide this application since this is the internal tool at our company..)
We can open RC file as text format, so we just search " " from RC file.
And I created only DLL from RC file, and load this DLL file inside EXE file
as some ppl do.
Good luck
Have a nice day!
-Masaaki Onishi-
|
|
|
|
|
I'am From China.help me For Visual C++ and English.
Thank You!
Welcome to NetVc:http://netvc.6to23.com
|
|
|
|
|
errrrr
help you what?
read english?
escape from china?
learn c++?
ask clearer questions?
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Hello, first of all excuse my english, as in VC++ I'm just a begginer.
I have a DLL that allows me to interact with a PLC. I need to get some values that are stored in the double format.
the f(x) that allows me to obtain the values from the PLC use a pointer to a void type.
here's a piece of code:
long CAccedirTWinCAT::GetDadesxNom(CString csNom, void *&pParam, int iPort /*=AMSPORT_R0_PLC_RTS1*/)
{
EnterCriticalSection(&m_CritSec);
long lCodiError = 1;
ULONG VarHandle = NULL;
ULONG ulData = NULL;
int iLength = csNom.GetLength();
m_pAddr->port = iPort;
// this is the dll exported function.
lCodiError = AdsSyncReadReq(this->m_pAddr,ADSIGRP_SYM_VALBYHND,m_VarHandle,sizeof(pParam),&ulData);
pParam = (void *)ulData;
LeaveCriticalSection(&m_CritSec);
return lCodiError;
}
and here how I call the f(x).
void *vParam;
m_Accedir.GetDadesxNom(".g_bManual",vParam);
BOOL bEstatManualACT = (BOOL)vParam;
How should I convert the (void *) to a double?
|
|
|
|
|
The function gives a 32-bit value (ULONG cast to a void*), and a double takes 64 bits, so you can't get double values using the function GetDadesxNom(). You might be able to retrieve single-precision floats and convert them to doubles with double dData = reinterpret_cast<float>vParam;
|
|
|
|
|
Hi,
I have problems filling up a structure while debugging.
The Strucutre is something like this:
typedef struct
{
char; // (8Bit)
unsigned int; // (32Bit)
somepointer*; // (32Bit)
}
what makes 9 Byte together.
I want to fill up the struct with a byte-pointer pointing to a stream. That works but the problem is that in debugging mode CHAR seems to be 32Bit long, because when I fill up the struct byte by byte the first byte is placed into the CHAR but it needs 3 more bytes to get to the UNSIGNED INT.
Any ideas ? Thanks!
CU Mario ///
----------------------
www.klangwerker.de
mario@klangwerker.de
----------------------
|
|
|
|
|
The reason is byte packing.
The i386 and later processors can access memory that is aligned or unaligned to specific
boundaries.
For byte size operations, any address is as good as another (not quite true,
but its handled inside the processor).
For word size (16 bit) operations, accesses are faster on 16 bit aligned addresses (every
2 bytes).
For DWORD and pointer size operations, accesses are faster on 32 bit aligned addresses
(every 4 bytes).
Since your structure has a 4 byte sized object (the unsigned int) following the char
it has been aligned to the next optimal address. If you really don't like this you
can instruct the compiler how you want it to behave using the #pragma pack directive.
Stephen Kellett
|
|
|
|
|
I have a very simpl dialog based app that just has a CWebBrowser2 control in it. Every five seconds I call m_WebCtrl.Refresh() .
When running I quite often in the debug window...
First-chance exception in myapp.exe (GDI32.DLL): 0xC0000005: Access Violation.
This does not stop my app, but it just worries me! Any ideas what could be causing this please??
|
|
|
|
|
These are hard to trap, but often harmless.
Sometimes you can get an idea of the general area involved by stopping at a breakpoint (or starting with F10) and modifying the exception behavior so that first chance exceptions cause a break.
After the debug session is started open the Debug menu and select the Exceptions option. In the dialog change the behavior of the access violation from 'Stop if not handled' to 'Stop always'. Then, the next time the OS traps the exception, you'll break into the code - albeit some rather cryptic assembly of GDI32.DLL. If you hit alt+7 to display the call stack, and you're lucky enough to see some files that show you the last made graphics calls, you might be able to infer what's going on.
Very often you won't be able to see much. GDI is the worst, I think, since problems may be bubbling up from some minor driver fluff - who knows? I've seen docs in the MSDN that try to assuage the fears of ardent developers like yourself, and I think the basic dogma these days is to let it be.
The tip here can be useful in other areas though - I can remember using it to straighten out a bad CString initialization once. Always nice to at least try to see what's going on!
|
|
|
|
|
hi,
I have written a MDI program that can create three different views. The problem is that i have no idea on how to maintain each view's title bar's caption. I use back the same doc class for all the view class.
I did something like this:
CDocument * pDoc;
pDodc->SetTitle("HTML View");//for each different view, different caption
When i create a new different view (with other views created earlier), the title bars' caption of all the previously created views follow the caption of the new view. Any idea on how to avoid such situation??
Thanks in advance.
leonwoo
|
|
|
|
|
Overload CMDIChildWnd::OnUpdateFrameTitle() and in that method, set the text to whatever you like.
--Mike--
http://home.inreach.com/mdunn/
The preferred snack of 4 out of 5 Lounge readers.
|
|
|
|
|
Thanks for your answer Micheal.
|
|
|
|
|
in the OnCreate() function of your view's frame window change the lpszWindowName parameter to what you want it to be
---
"every year we invent better idiot proof systems and every year they invent better idiots"
|
|
|
|
|
Hi
I need to upload binary file (dll) to SQL Server database throught ADO.
I tried to use "ADODB.Stream" object, but i can't open this stream from the file.
hStream->Open(n, adModeUnknown, adOpenStreamUnspecified, _bstr_t(""), _bstr_t(""));
hStream->LoadFromFile(szFileName);
Could you specify correct syntax for this method call
Thanx.
|
|
|
|
|
Hi
I have one application that generates an Storage of ActiveXControls ( OleDocument -> Save Map-> ...), and I would like to read that storage and just put the ActiveXControls in a normal view, is there any way to do that ?
Thanks, Bye !
Braulio
|
|
|
|
|
HI ALL
I want make simple calculator so I get some problems like :
- try do that :
double d1 = 5/3 ; //same (5/3)
double d2 = 3/2 ;
and you get this result (1)
when you do that in Calculator program(by Microsft)
the result is (1.6666666666666666666666666666667) and (1.5)
the problem here the value after the point didn't appeare
I tried by VISUAL C++6 using (CEDIT box)
- next problem ,when you try to show larg number in (CEDIT box)
the CEDIT box show the number with (e+) like(8.98765431209876e+016)
how I can disable or enable this(e+)
THANK YOU
AHMAD ALWASHALI
|
|
|
|