|
There is a function setautourldetect suporrted by CRichEditCtrl as per MSDN but when actually called there is no such function in the header file . there is a compiltion error can anybody help me ?????
|
|
|
|
|
In January 2001 MSDN is no such function by CRichEditCtrl. Maybe it's something added in the latest Platform SDK?
Sonork 100.15206;PavelK
|
|
|
|
|
|
I think there is a macro for this in ATL but you may want to send the message
SendMessage(
(HWND) hWnd, // handle to destination window
EM_AUTOURLDETECT, // message to send
(WPARAM) wParam, // URL detection state
(LPARAM) lParam // not used; must be zero
);
Parameters
wParam
Specify TRUE to enable automatic URL detection or FALSE to disable it.
lParam
This parameter is not used; it must be zero.
As my daughter would say, "... Whatever!"
|
|
|
|
|
There is a function setautourldetect suporrted by CRichEditCtrl as per MSDN but when actually called there is no such function in the header file . there is a compiltion error can anybody help me ?????
|
|
|
|
|
Hello;
I have trouble with CSplitterWnd and views. I have working on multiple view with CSplitterWnd sample. But i couldn't found a way to communicating views with each other. How can i set a property of an object on the other view from active view?
Thanks...
|
|
|
|
|
The member function CWnd* GetPane( int row, int col ) which returns window pointer to the window/view in specified pane can be of use.
Sonork 100.15206;PavelK
|
|
|
|
|
I have developed a chat server. In that I am displaying online/offline user list using tree control, I can see the list in all other systems except my DELL laptop which has XP Pro. Sometimes its showing 2 or 3 users including me...and sometimes its not showing a single user...I dont know whats happening. May be there will be some settings for DELL with XP Pro which I dont know. If somebody knows abt it please tell me.
Thanks
Prateeti
|
|
|
|
|
Hi,
I would like to modify the context menu string at runtime.
So i had written settext(..) in OnUpdateCommandUI ().
But it is not updating the text.Could anyone help me..
Thanks
|
|
|
|
|
|
I had tried this.
pSubMenu->ModifyMenu(ID__DELETETHEFRAME, MF_BYCOMMAND|MF_STRING, ID__DELETETHEFRAME, "&Save Selection");
But text didn't change.
|
|
|
|
|
|
I did it by position on the main menu but I had to call DrawMenuBar() maybe there is an update command for submenus.
|
|
|
|
|
Is it possible to modify the sdi window menu (File,edit...) at run time??
|
|
|
|
|
Yes it is. In OnUpdateCommandUI for the first item in the menu (file, edit or whichever) you can modify the menu (with CCmdUI::m_pMenu). It's called before the menu is pulled down and displayed.
Sonork 100.15206;PavelK
|
|
|
|
|
Hi!
How can I let Windows' Desktop know I have changed an icon shown over there? After I change DefaultIcon value nothing changes. In Windows9x I would delete ShellIconCache, but I need a way to do that in all Windows.
Would anyone help me in the problem?
|
|
|
|
|
Hi all,
I get a "First-chance exception - Stack overflow" in GdiPlus.dll when I'm calling the GDI+ function "Region::Xor(Rect&)" several times in a row (>10000). I have no idea what to do about this, so please, anyone, help me.
Thank you,
biff
|
|
|
|
|
Well im messing around with smart cards.. I can connect, find readers, get the status and everything. But I just don't understand how to write and read values... With this BYTE system....
What would this mean?:
BYTE pbSendBuffer = { 0xC0, 0xA4, 0x00, 0x00, 0x02, 0x3f, 0x00 };
I think if I knew how this byte thing worked I can figure the rest out... Sadly my c++ book doesn't have anything on "bytes " and the book from school doesn't either.
|
|
|
|
|
BYTE is usually defined as an unsigned char (8 bits). You probably know that the values inside of the braces are hex values to initialize the BYTE array.
Not much different from doing:
unsigned char pbSendBuffer = { 0xC0, 0xA4, 0x00, 0x00, 0x02, 0x3f, 0x00 };
|
|
|
|
|
WM_INITDIALG is good message to init dialog box.
is there a similar message for a normal window?
WM_CREATE is no what i want, because the message is sent before window is properly created, i.e. on the message, SetTimer function can't be used because HWND is not OK in the moment.
do u know which message is good place to init a window?
thx
includeh10
|
|
|
|
|
includeh10 wrote:
WM_CREATE is no what i want, because the message is sent before window is properly created, i.e. on the message, SetTimer function can't be used because HWND is not OK in the moment.
[msdn]The WM_CREATE message is sent when an application requests that a window be created by calling the CreateWindowEx or CreateWindow function. (The message is sent before the function returns.) The window procedure of the new window receives this message after the window is created, but before the window becomes visible[/msdn]
The HWND is valid!
Nish
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
try SetTimer or IsWindow then come back
includeh10
|
|
|
|
|
includeh10 wrote:
try SetTimer or IsWindow then come back
case WM_CREATE:
BOOL b;
b = IsWindow(hWnd);
if(b)
MessageBox(0,"true","true",0);
I put that in my WndProc and I coolly got a mesg box saying true.
The HWND *is* valid when WM_CREATE is sent!!!
Author of the romantic comedy
Summer Love and Some more Cricket [New Win]
Review by Shog9
Click here for review[NW]
|
|
|
|
|
please use SetTimer then try if the timer is OK, i am using it now, i post the thread because it doesn't work.
there are many cases the HWND can't be used properly on the message.
normally i set timer under WM_PAINT message:
if(bTimer==0)//BOOL bTimer=0 as init
{
SetTimer;
bTimer=1;
}
i don't like the way, i want to find right message.
thx
includeh10
|
|
|
|
|
WM_CREATE is the message you want
LRESULT CALLBACK ViewerWndProc (HWND Wnd, UINT nMsg, WPARAM wp, LPARAM lp)
{
switch (nMsg) {
case WM_CREATE:
SetTimer(Wnd, 1, 500, NULL);
break;
case WM_TIMER:
MessageBeep(1);
break;
...
works great, window pops up and starts beeping away.
CPUA 0x5041
Sonork 100.11743 Chicken Little
"So it can now be written in stone as a testament to humanities achievments "PJ did Pi at CP"." Colin Davies
Within you lies the power for good - Use it!
|
|
|
|