|
i need some information. let me tell u exactly what i am doing. i am working on a project in which i have addresses of the starting sector and ending sector of an image file. Using those two sector addresses of the hard disk, I have to display that image as a thumbnail preview on a list pane just like windows thumbnail view. i want to know how I can resolve this query progrmatically in VC++ without using any third party tool. can u please help me on this?
thanks in advance.
Regards,
Srinivas
|
|
|
|
|
You have two addresses of start and end of a file on the harddisk and you want to make a bmp file(thumbnail)of them ,right?
|
|
|
|
|
yes. i am even able to create the file using that data (by using CreateFile() function). but, before saving that data, i want to show the preview of that image. how can i do it?
Regards,
Srinivas
|
|
|
|
|
|
Hi
I need to add a context menu handler to a file type like .xyz so when I right click on any .xyz file it will show my private menu. I know how to add a simple menu in the registry, but I need to add a managed context menu in a DLL. I know all things about registry Using HKEY_CLASSES_ROOT, but I miss the DLL declaration. I read about it in MSDN page but I couldn't understand to solve my problem.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_int/shell_int_extending/extensionhandlers/contextmenuhandlers.asp
this page contain exactly what what I need, but I couldn't understand correctly. so I need a simple example.
I want to add a group of menu having the name: "MyGroup" and having 2 sub menu: "Menu1" and "Menu2"
if I click on Menu1 it will call: "C:\MyProgram.exe /1" and if I click on Menu2 it will call: "C:\MyProgram.exe /2"
I need a small example, because I couldn't understand the general example in Msdn page.
OmarMallat
|
|
|
|
|
There is a complete series about writing shell extension on code project. See here[^] for the first (I think there are 9 articles in total).
Maybe you'll find some usefull information there.
|
|
|
|
|
Hi everybody,
i used a customizated CEdit from out CodeProject :
void MyCEdit::OnKillFocus(CWnd* pNewWnd)
{
CEdit::OnKillFocus(pNewWnd);
SetBkColor(RGB(255,255,255));
}
void MyCEdit::OnSetFocus(CWnd* pOldWnd)
{
CEdit::OnSetFocus(pOldWnd);
SetBkColor(RGB(0,216,255));
}
void MyCEdit::SetBkColor(COLORREF crColor)
{
m_crBkColor = crColor; // Passing the value passed by the dialog to the member variable for Backgound Color
m_brBkgnd.DeleteObject(); // Deleting any Previous Brush Colors if any existed.
m_brBkgnd.CreateSolidBrush(crColor); // Creating the Brush Color For the Edit Box Background
RedrawWindow();
}
switching between the textboxes displays the current textbox with the focus a blue background.
Switching with the TAB-Key works nice, but with the mouse provokes a strange effect.
If i'm on textbox A and switch to B, B gets the blue background BUT a keeps a small frame at the extern sides
If i pass (not click) with the mouse over the textbox, the small frame disappears and the textbox
is in the correct displaying mode ( without background )
My question : How can i provoke programmaticly a "mouse over a control" ?
I tried already :
UpdateWindow();
Invalidate();
RedrawWindow();
but no effect, only if i pass the mouse over it
Thanks a lot
|
|
|
|
|
Can you show , how MyCEdit::OnPaint looks like ?
|
|
|
|
|
It's the standard OnPaint-Handler
Thanks for help
|
|
|
|
|
Have a look at http://www.codeproject.com/editctrl/enhfocusedit.asp[^], which does a custom background with focus, and have seemed to work correctly so far...
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
Ok, i see the problem
it's not a problem of MFC or something else, it's at new a BCGSoft-Problem
With standard-textboxes it works great... But with the BCGSoft-Librairy it sucks
so, i think i can't resolve the problem
|
|
|
|
|
I used to use BGCSoft - you can see my posts on their forum.
I do not use them anymore, though...!
Peace!
-=- James Please rate this message - let me know if I helped or not!<HR> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
I must excuse me by BCGSoft, it wasn't a BCGSoft Problem.
RedrawWindow(NULL, NULL, RDW_INVALIDATE | RDW_UPDATENOW | RDW_ERASE | RDW_FRAME);
resolves the Problem
Sorry & thanks BCGSoft
|
|
|
|
|
Hi,
I have a Client-Server Application.
I am trying to get the IP address of the machine on which the client is running on at the Server Side.
I want to store the IP address at the Server side and use it for future processing.
How to get the IP address of the client machine at the Server Side.
I am using VC++ 6.0
Thanks n regards
|
|
|
|
|
Vichitram wrote: I am trying to get the IP address of the machine on which the client is running on at the Server Side.
I want to store the IP address at the Server side and use it for future processing.
If you have the machine name then use gethostbyname .
|
|
|
|
|
or if the client is connected (you have a connected socket) then you can use getpeername().
Mark
"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")
|
|
|
|
|
|
how can i change the font of menu items? i am using visual studio 2005-VC++
|
|
|
|
|
|
it is layerd,like stack wnd ,
and like outlook bar ,but it can expand panel more than one panel .
and it is not like xp explorer bar ,this dreamweaver panel is not scroll when
all the panel height is greater than the ctrl height.
thanks you.
|
|
|
|
|
|
sorry,
and i want to use it in my project ,
thanks you.
|
|
|
|
|
Did you search on the codeproject I saw articles like your question that I think are helpfuls for you but you dont want that this panel has scroll?
|
|
|
|
|
No need scroll,
all panel in this ctrl is always visable , just hide the window in the panel when click panel to hide it .
it likes "window blind"
|
|
|
|
|
can anyone help me in finding the size of a folder or size of directory using MFC
Fly Like An Eagle With MIGHTY POWER.
|
|
|
|