|
installed tape drives ... Windows9x
Using Win32 API? You don't.
Mike Don't blame me, I'm just the messenger. Blame Microsoft
|
|
|
|
|
Hi.
Is it possible to change the background color and font color of a CEditView window? Please explain.
Thanks,
Kuphryn
|
|
|
|
|
Use SetTextColor and SetBkColor.
For an example see this article at CodeProject.
-Dominik
|
|
|
|
|
I have read that tutorial. I believe it is for an edit box.
Kuphryn
|
|
|
|
|
But should also work for a CEditView. A CEditView is nothing other than a bigger CEditBox.
-Dominik
|
|
|
|
|
Hello there,
There isn’t any control or ActiveX or etc.
I just drew a jpeg file by IPicture(class interface) in background !
Then, I loaded a .bmp file from resource as usual …
CBitmap bmp;
bmp.LoadBitmap(IDB_BITMAP1);
In one of functions in my program I have to move the bitmap on the dialog !!!
Problem is when I moving the bitmap, I don’t know how could refresh that
I used Invalidate() function too, but it doesn’t work
I sent screenshot, too
Help me, please
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
try
RedrawWindow()
R_Renjith The True CP ian
|
|
|
|
|
Hi there,
How can I select a RECT from a image that is in my dialog in CDC object ????
My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html
Hadi Rezaie
|
|
|
|
|
I'm still fairly new to VC++ and MFC so I'm not sure of the correct terminology to use here.
I'm developing a Windows-based application. I would like this application to be able to detect if another instance of this application is already running and, if so, send and receive information with it. How would I do that?
|
|
|
|
|
|
Thank you! I think I can adapt this code to my needs without much trouble.
|
|
|
|
|
I want to learn how to load the defualt character in a MFC app.;P
cf
|
|
|
|
|
I want to learn how to load the defualt character in a MFC app.;P
cf
|
|
|
|
|
Hello guys, I know that it will sound stupid - but I can't find any way of clearing the selection of a ListView control the way it is before you select an item for a first time.
Thanks for your patience ,
Deian
|
|
|
|
|
ListView_SetItemState(hwndList, -1, LVIS_SELECTED, 0);
--Mike--
Just released - RightClick-Encrypt - Adds fast & easy file encryption to Explorer
Like the Google toolbar? Then check out UltraBar, with more features & customizable search engines!
My really out-of-date homepage
Sonork - 100.10414 AcidHelm
|
|
|
|
|
Thanks again Mike
Deian
|
|
|
|
|
Is there a way to subclass a groupbox so that it automaticly contain, say four CButtons. ie when I add my derived class to a dlg project it will automaticly add the four member buttons. The problem for me is how i do with the resources for these buttons.
Thanx...
|
|
|
|
|
Do you really need the resource for the buttons?
Can't you just create them from your subclass?
|
|
|
|
|
I have some code in ASM but I can change it to VC++ command, how to use ASM in VC++???
please help me!!! thanks
|
|
|
|
|
Have a look in the MSDN at "__asm" if you have a MS compiler, otherwise look out for "asm".
Good luck
-Dominik
|
|
|
|
|
try
__asm
{
your asm code here
}
|
|
|
|
|
__asm
{
//write your assembly code here
}
R_Renjith The True CP ian
|
|
|
|
|
also think so
|
|
|
|
|
I need that when my windows is created it automatically execute some task.
In particular query the database using ado and displaying the results in editbox, lists, etc...
I tryed to put the call to the function that retrive the data in the constructor, but the controls are not yet created so Assertion Failure.
I went on and tryed when the window post WM_CREATE, same error, I tried with WM_SHOWWINDOW, same same.
Finally in the WM_PAINT, OnPaint, everything works perfectly.
The downside is that everytime my window is covered, resized, maximized, etc, my App requery the database, and this is a Big WASTE OF RESOURCES, especially if made on sone network.
I solved this by creating a BOOL m_AlreadyQueried.
And putting an if(!m_AlreadyQueried){...}
So when the WM_PAINT is posted the OnPaint calls the Query function, and sets m_AlreadyQueried = TRUE, the next time OnPaint is called the if evalutates false and the App doesn't query the database.
There is anther way of making this?
I mean maybe I'm wrong using WM_PAINT, but the other messages are posted "TOO EARLY".
"Nelle cose del mondo non e' il sapere ma il volere che puo'."
|
|
|
|
|
If yo want to do it in your view class you can do it in OnInitUpdate()
Mazy
"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica
|
|
|
|