|
Hello,
I am looking for the mentioned sysmsg.dll . I was unable to find on my Windows 2000 and it is not included with Visual Studio (I have a service pack 5). Could you please help me (let me know) where could I get it?
Or is there somebody who has it (perhaps with a lib and header if required) and could send it to me?
Thanks
|
|
|
|
|
I'm currently building a ListView control that is able to be edited in-place. So far I've got an edit control working, but I'm having problems with a spinner control.
The first problem is I can't set the focus to the spinner control after I've created it. I tried using the same method (SetFocus()) I used for the edit control but doesn't work.
The second problem is I can't trap when the 'Esc' or 'Enter' are pressed. For the edit control I'm using PreTranslateMessage(), but it's not getting called when the spinner is created.
Anybody no what's going on? Have an examples I can take a look at?
Thanks
Chris
|
|
|
|
|
the program has a view,
there are 2 Splitter Windows.
i will open a file in the 2 Splitter Windows.
one is hex. one is txt.
i feel good.
|
|
|
|
|
it must be choose one file ,
and open it in 2 Splitter Windows and in the same time.
i feel good.
|
|
|
|
|
for hex, open as ios::binary, for text, ios::text
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
i have seen a code that is
class CHexEditCtrl : public CRichEditCtrl
it change CString to Hex,but it is in a EditCtrl.
i want open a file in a View
i can write a class
which public CView as --- class CHexEditCtrl : public CRichEditCtrl??
i feel good.
|
|
|
|
|
why not just create a CRichEditCtrl in your view and use that? Then you can have access to all the fun fonts and colors too.
- Nitron
"Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb
|
|
|
|
|
Hi !!!
I'd like to automatically run my app when inserting the CD-Rom (containing my app).
My app will be developped with VC++ 6, using the MFC.
What I was wondering is : is it possible ? I know that the MFC needs some DLLs, so how can I run my MFC App from the CD-ROM if the required DLLs are not on the local computer ? Linking the MFC statically is enough ?
Thanks !
Jerome
|
|
|
|
|
To resolve the DLL things, your application need to be statically linked with MFC ( if possible ), and if it needs other DLL, they should also be on the CD.
You can also do some pre testing, in the autoload thingy on the CD, start another application that checks for DLL's and other things, and then start your application.
Or, you can "temporarilly" install the application in a temp directory to run it.
Max.
|
|
|
|
|
Yep linking statically is fine...
Or as long as you place the DLLS the app needs in the same directory as the applcation it elf...
Asim Hussain
e: asim@jawache.net
w: www.jawache.net
|
|
|
|
|
Make an autorun.inf file containing the following:
[autorun]
OPEN = YOUREXE.EXE
ICON = YOUREXES.ICO
replace the italicized text
Jason Henderson start page ; articles
henderson is coming
henderson is an opponent's worst nightmare
* googlism *
|
|
|
|
|
Is it possible to query the remaining time of timer (returned by Set/CreateWaitableTimer )? If so HOWTO???
10x
--BlackSmith--
/*The roof is on fire, we don't need no water, let the MF burn*/. BHG.
|
|
|
|
|
I don't know of any Timer-related function to do so, but I would probably go with something like GetTickCount to grab the times first at SetWaitableTimer and then at WaitForSingleObject. The max wait time minus the difference of these two should tell you how much time was left.
Regards,
Alvaro
Well done is better than well said. -- Benjamin Franklin
(I actually prefer medium-well.)
|
|
|
|
|
When I have 2 instances of VS.NET compiling at the same time, one of them makes an access violation error.
Is there a way that I can have 2 instances compiling at the same time?
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
What is the exact difference between them ?
I create next modeless dialog from main dialog. (MFC dialog based application). But it doesn't matter what the type of dialog in resources i use - result is the same.
rrrado
|
|
|
|
|
I believe one difference is that an overlapped window has a frame is can be resized.
Kuphryn
|
|
|
|
|
No, you can set resizable border also on the popup window, t tried that
rrrado
|
|
|
|
|
Hi all,
I am trying to get a bit of assistance as to the best method of of using data stored in my database, as the means of populating a CTreeCtrl. I have currently included the CTreeCtrl in my project, and now I want to be able to populate individual nodes, with the information stored in my database. Any assistance appreicated.
Regards
|
|
|
|
|
Assuming that you have something like a recordset, whenever you iterate thru the recordset you could add items to the Tree using the InsertItem() method . Also in one of my projects I needed to record changes made to the CtreeCtrl for which I had a structure array .
|
|
|
|
|
Thanks! simple answers are usually the best!!
Regards;)
|
|
|
|
|
I have the following problem in my MDI App.
If my MDIChildView is not maximized I remove the menu of my MDIFrame (SetMenu(NULL)). Then I maximize my view and I set my frame menu to the original menu (SetMenu(pOrgMenu)). The menu appears, but the control menu (maximize, minimize, close button) of my child view don't appear in the menu bar, as it should do.
The only possibility that I have is to call
MDIRestore()
MDIMaximize()
of my child window. But this results in an ugly window flash.
I have already tried all things I know about MDI frames and child views, but non of that worked.
Has anyone an idea, how I can solve this problem?
Thanks in advance
|
|
|
|
|
I never tried to set and remove menus that way, so I won't be able to directly help you.
I've implemented once the maximizing of a view of an MDI application this way
CMyView::Maximize()
{
// maximize window
GetParent()->ShowWindow(SW_MAXIMIZE);
}
The parent of the view is the ChildFrame, it's the one which is resized. The resizing of the contained view is done by the Child frame (CChildFrame::OnSize or CChildFrame::OnExitSizeMove).
HTH,
Ohé Partisans, Ouvriers et Paysans
C'est l'alarme!
Le Chant des Partisans
|
|
|
|
|
Thanks for the reply, but unfortunately that's not exactly what I need.
To be clear: I remove NOT the control menu of my view, but the applications main menu.
If you maximize a view, the control menu of the view will be displayed in the main menu bar of the applications main frame.
If I switch the main menu off and then maximize my view, the control menu of the view is not visible, because the main menu in which the control menu should be displayed is not visible. That's correct. But if I switch the main menu back on, the views control menu is not displayed. I can only solve this if I restore and maximize the view, which causes an ugly flash of my view.
|
|
|
|
|
I would try to solve this in another way:
Draw these buttons (minimze,resize,close) by yourself in the menu bar.
Remember what view is currently maximixed. And send the message
WM_CLOSE,
.
.
to the current view by yourself.
I know this method requires some work but this way you will surely succeed.
Yours,
Alois Kraus
|
|
|
|
|
CodeBrain wrote:
To be clear: I remove NOT the control menu of my view, but the applications main menu
I suppose you do this to have the biggest display area, don't you ?
CodeBrain wrote:
But if I switch the main menu back on
I suppose you work with handles, because CMenu pointers might not be valid anymore when re-setting the menu.
I tried to do a small testing application, and a priori , it works fine (the trick is to restore the active view ). I sent it to you, say me if it's what you're looking for.
Ohé Partisans, Ouvriers et Paysans
C'est l'alarme!
Le Chant des Partisans
|
|
|
|