|
My pleasure. Best of luck with your proj.
|
|
|
|
|
Hi enhzflep,
I found another solution which is quite easy if you know how to do it.
I only had to overwrite the OnCommand method.
BOOL CPlainText::OnCommand(WPARAM wParam, LPARAM lParam)
{
int wNotifyCode = HIWORD(wParam);
UINT wID = LOWORD(wParam);
HWND hwndCtl = (HWND)lParam;
if (wNotifyCode == EN_SETFOCUS)
{
m_nOldRichEditID = wID;
}
return CResizingDialog::OnCommand(wParam, lParam);
}
But you helped me to find this solution.
|
|
|
|
|
I am using a computer that has not been installed VC++6.0. So, what files should I copy to my computer in order to compile successful a project without installing VC++6.0?
|
|
|
|
|
phan xuan nguyen wrote: So, what files should I copy to my computer in order to compile successful a project without installing VC++6.0?
What do you mean by this? . Are you want to run an executable (created using VC++ 6) in a computer where VC++ is not installed?
Regards,
Rane
|
|
|
|
|
you need to have some compiler to compile a project. VC++6.0 is one of them. You won't be able to compile the code without a compiler
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
You cant.You need vc++ compiler or other compilers.
|
|
|
|
|
Another compiler.
i.e. Maybe you should reformulate your question in a better way.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi,
I want to give full permission to a directory (Administrators as well as any of other users) through CreateDirectory( ) api. Can I have any code snippet.
Thanks,
Venkat
|
|
|
|
|
See this[^] link.
Regards,
Rane
|
|
|
|
|
Hi,
If you give NULL in LPSECURITY_ATTRIBUTES. What is the permission there..
Did you tried like that?
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
If LPSECURITY_ATTRIBUTES is NULL, the directory will be created successfully but will have the access permission of the current process.
Regards,
Rane
|
|
|
|
|
The code has NULL in LPSECURITY_ATTRIBUTES and still its not working
|
|
|
|
|
Did you look at the link Rane provided?
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
The code has NULL in LPSECURITY_ATTRIBUTES and still its not working
Reply·Email·View Thread·PermaLink·Bookmark
|
|
|
|
|
I need to monitor a process and restart it if it fails with a "Send/Don't Send" message (don't ask why...:P). I know it's pid the os seems to report it as still running even though it crashed.
The problem is that even if the program crashed (access to invalid memory or smth) it still responds to events until i close the MS debug window
Thanks
modified on Thursday, September 11, 2008 6:44 AM
|
|
|
|
|
This link[^] will be of little help.
Regards,
Rane
|
|
|
|
|
Iam using CToolBar class.
Here is the code.
if (!m_pToolBar->CreateEx(this, WS_EX_RIGHT|TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_TOOLTIPS | CBRS_FLYBY CBRS_SIZE_FIXED | CBRS_ALIGN_RIGHT, CRect(0, 0, 0, 0), IDR_TOOLBAR_TAGCOLUMNS/*, CIDs::GetID()*/) ||
!m_pToolBar->LoadToolBar(IDR_TOOLBAR_TAGCOLUMNS))
{
return FALSE;
}
This is creating a horizontal toolbar.
Can anybody help me how to create a vertical toolbar?
|
|
|
|
|
Hi,
In the CreateEx(...) use CBRS_LEFT or CBRS_RIGHT instead of CBRS_TOP.
Your Toolbar will be vertical...
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi SANTHOSH,
Thanks for ur reply.
I tried with the styles u specified.
but still the buttons in the toolbar are aligned horizontally,
I want it to display vertically.
What do I need to do for that?
Thanks,
Neela
|
|
|
|
|
Hi,
You better use this code..
if (!m_wndToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_GRIPPER | CBRS_TOOLTIPS | CBRS_FLYBY | CBRS_SIZE_DYNAMIC) || !m_wndToolBar.LoadToolBar(IDR_MAINFRAME))
The price of anything is the amount of life you exchange for it.
Thanks and Regards.
SANTHOSH V
|
|
|
|
|
Hi,
I've used this code and after changing CBRS_TOP to CBRS_LEFT,
it works fine.
Thanks a lot!!!
Regards,
Neela.
|
|
|
|
|
Hello,
Could you please tell me if you know of any other way of receiving global mouse and keyboard input except for SetWindowsHookEx within a dll? I am working on an macro recording application and I want to be able to record all keyboard actions and all mouse clicks and movements and then play them as recorded.
I cannot use SetWindowsHookEx with WH_JOURNALRECORD and WH_JOURNALPLAYBACK because they do not work well in Vista. WH_JOURNALRECORD need uiAccess set to true in manifest which involves having a signed certificate.
I saw macro recorders on the internet that set a global hook somehow and catch all mouse and keyboard events without even requiring Admin rights from UAC or using dlls.
How can I read the raw input from mouse and keyboard (from user mode)?
Found an application (Axife Mouse Recorder) that does this.
Please help. Thank you.
www.nkprods.com
|
|
|
|
|
Have you seen this[^]
Regards,
Rane
|
|
|
|
|
Hello everyone,
I am wondering how ProgIDtoCLSID is implemented internally? My idea is it just look through registry and find matched ProgID string name, then return the matched ProgID item's sub CLSID key of the matched ProgID item.
Not sure whether it is actually implemented in this way?
thanks in advance,
George
|
|
|
|
|
I guess you're right.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|