|
UI handling should go in your view, not the doc. Do it in OnInitialUpdate().
--Mike--
My really out-of-date homepage
He who laughs last, didn't get the punchline and is just laughing so he won't look silly.
Sonork - 100.10414 AcidHelm
Big fan of Alyson Hannigan.
|
|
|
|
|
Hi,
What is the better way to create a GUI from a bitmap image? I have to create a GUI like the RealJukeBox's or winamp's and I was wondering if someone here could help with some infos.
Thanks in advance.
Where there is a WISH, there is a WILL.
|
|
|
|
|
Hi all,
could anybody help me with creating a syntax coloring control using the win32 API and not MFC?
Or does anybody knwo good ressources on this topic?
thanks in advace,
Oliver
|
|
|
|
|
Well, I guess you'll have to use the Richedit control via API. Its an ActiveX control so maybe you'd have to use some COM to get it to work. I am not very sure abt all that stuff. But basically that's the control you'd wanna use.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
|
Excuse me for posting this again, but I'd really appreciate having your help on this.
A couple of days ago I posted an article on the Collaboration/Testing section (you can see here) describing a weird behavior on Windows 2000/XP that I've got the hunch is actually a bug, and would love if some of you could be able to reproduce it on your computers and report it back to me, so that I've got more backing data to issue a bug report to MS. Thanx for your help.
Best regards
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
I've given you a reply on the lounge regarding your timing of this re-post. Read it.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Could you please help me how to define which item was clicked in a TreeCtrl?
Thanks
PP
|
|
|
|
|
GetSelectedItem
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
my problem is that I dunno how to evaluate the HTREEITEM's returned from GetSelectedItem.
In the buttonclick message handler I tried to compare them to the HTREEITEM's from the InsertItem's but it did not help.
Thanks
PP
|
|
|
|
|
there a two ways i do this:
one is to set the tree item's itemdata member to the unique id of the item you are storing there and use that value to get which one was clicked on
the other is to store the htreeitem in a data structure of the data you are putting in the tree and use that way to find which was clicked on
depends if you have unique data id's or not i guess
---
"every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"
|
|
|
|
|
hey all,
can anyone tell me how to put a bitmap as a background in my program. I am a newbie so please be patient
|
|
|
|
|
http://www.codeproject.com/bitmap/picturewindow.asp
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Okay thanks, I have done this part
All that you need to do is insert two new lines in your stdafx.h:
#include < atlbase.h > ;
extern CComModule _Module;
this is the part that is confusing, ie: do not know how to do.
The class is used by subclassing another window. So if you want to change the background of one of your dialogs or a control, all that you need is to add a new member of CPictureWindow in the object, and then subclass the object with your new member.
For instance, if you want to set the background image in a dialog, you would add a member variable m_PictureWindow to your dialog, and in the OnInitDialog call the function m_PictureWindow.SubclassWindow(m_hWnd ); where m_hWnd is the window handle of the dialog.
If you want to handle the EraseBackGround message in the dialog you have to call
m_PictureWindow.nMessageHandler = CPictureWindow::BackGroundPaint.
After you do this you have to call the Load function of the CPictureWindow class. In this way your background of the dialog will display an image.
#include "PictureWindow.h"
BOOL XXXX::OnInitDialog()
{
...
m_PictureWindow.SubclassWindow( m_hWnd );
m_PictureWindow.m_nMessageHandler = CPictureWindow::BackGroundPaint;
m_PictureWindow.Load("image.bmp");
};
Also, If you have one control child of one dialog (window) and you need to add a background picture all that you need to do is:
#include "PictureWindow.h"
BOOL XXXX::OnInitDialog()
{
...
// The IDC_STATIC1 is the identifier of child window, and the m_hWnd is the
// parent window handle
m_PictureWindow.SubclassWindow( ::GetDlgItem( m_hWnd, IDC_STATIC1 ) );
m_PictureWindow.m_nMessageHandler = CPictureWindow::ClientPaint; // This is the default value
m_PictureWindow.Load("image.bmp");
CAN YOU HELP ME ON THIS???
|
|
|
|
|
check out the Bitmap section omn CodeGuru. There you'll find a VERY easy class to use if you want to put an image as a background!!!
I've used it and haven't got any problems with it!!
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
|
Hi ...i'm new at programming, i have visual c++ 6.0 standard edition. i just made my first programm using mfc and now when i tried to put it on another computter i have an error it says that i need some DLL (mfc42d.dll) i want to know how can i copy those dll or insert those dll in my programm so it will work on other computter. i canot link it staticly because it the standard edition.
thank you
|
|
|
|
|
You need to compile the program in Release mode not debug.
You can do this from the Build->Set Active Configuration menu.
The release MFC42.dll should already be installed on other Windows computers.
Michael
|
|
|
|
|
Not always!
Fresh installs of win 98 wont have that DLL and a few others
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
You built with the Debug option set.
Use 'Release' in order to use a program on another computer.
// Rock
|
|
|
|
|
Use dependency walker to figure out all required DLLs used by your program. By the way Release-build it first. Now you know what DLLs to install on the target machine. Use a freeware install-maker tool or Visual Studio Installer to create the setup program.
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
Hi all,
Is any class in VC++ 6.0 for using thease protocols ?
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
hadi
check out the internet section of codeproject ... there are a number of classes you may find useful
---
"every year we invent better idiot proof systems and every year they invent better idiots ... and the linux zealots still aren't being sterilized"
|
|
|
|
|
I have a VB application which uses COMponent written on VC++. COMponent implements IConnectionPoint and creates additional threads. Pointer to [source] interface _IOutBound is correctly marshalled between main thread and additional ones.
The problem arises when VB calls Release (and --m_Ref==0). COMponent waits for threads to end and VB cannot serve call to _IOutBound since it is waiting in COMponent. And if one of the threads calling for _IOutBound - I got deadlock.
How can I prevent that deadlock?
--
Alvin777
|
|
|
|
|
Hi all,
I have to make new report with Crystal Report , i have problem in that, too !!!
Look at the my Tables and Fields with examples ...
Table -> PERSONS
Fields ->
PID (Number value)
PNAME (Text value)
PFAMILY (Text value)
and etc.
Example:
1 - Hadi - Rezaie
2 - Ali - Arabi
3 - Hasan - Varchaghi
Table -> OPERATE
Fields ->
PID1 (Just can save PID data in PERSON table)
POPERATE (Yes/No)
PID2 (Just can save PID data in PERSON table)
Example:
1 - Yes - 3
1 - No - 2
2 - Yes - 3
3 - No - 1
I wanna show thease information in my report like thease:
Person name: Hadi Rezaie
Operation list:
Hasan Varchaghi - Yes
Ali Arabi - No
Hasan Varchghi - No
Please look at the 1 number in OPERATE table,
If 1 is in first column then report must show the information of number which is in second column ...
If 1 is in second column then report must show the information of number which is in first column ...
How can i do it ?
Please help me ! HELP ME !!!
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|