Click here to Skip to main content
16,011,778 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Restricting mouse pointer to move Pin
Roger Allen20-Nov-02 2:37
Roger Allen20-Nov-02 2:37 
GeneralRe: Restricting mouse pointer to move Pin
Maximilien20-Nov-02 2:38
Maximilien20-Nov-02 2:38 
GeneralResources .rc question Pin
Braulio Dez20-Nov-02 0:26
Braulio Dez20-Nov-02 0:26 
GeneralRe: Resources .rc question Pin
RuiSantiago20-Nov-02 0:43
RuiSantiago20-Nov-02 0:43 
GeneralRe: Resources .rc question Pin
georgiek5020-Nov-02 1:41
georgiek5020-Nov-02 1:41 
GeneralRe: Resources .rc question Pin
Braulio Dez20-Nov-02 2:28
Braulio Dez20-Nov-02 2:28 
GeneralRe: Resources .rc question Pin
Braulio Dez21-Nov-02 1:08
Braulio Dez21-Nov-02 1:08 
GeneralRe: Resources .rc question Pin
georgiek5021-Nov-02 2:47
georgiek5021-Nov-02 2:47 
Well, to tell you the truth, I am just a novice myself. I just did these thing recently so I know about them...If you do not need the text resource anymore then you should call FreeResource. My book says that even if you don't call FreeResource then it will be freed when the program terminates but I think that it's always a good idea to get rid of them when you are done with them. I think you also found a memory leak in my program since I was loading the resource every time I started the dialog and wasn't freeing it so thanks! About the the handle of the instance, there are many ways. What I use a global HINSTANCE hInst for example. In WinMain I set hInst = hInstance but you must set the global handle hInst to hInstance before CreateWindow in WinMain or else it won't work. I also found that out a couple of weeks ago. Other ways are in WM_CREATE you can declare a local HINSTANCE hInst and set it to hInst = ((LPCREATESTRUCT) lParam)->hInstance. Yet another way is GetWindowLong(hwnd, GWL_HINSTANCE). This also straight out of Charles Petzold's Programming Windows, in my opinion a book that everyone should have. Taught me everything I know! Good luck with your program.
GeneralRe: Resources .rc question Pin
Braulio Dez21-Nov-02 2:56
Braulio Dez21-Nov-02 2:56 
Generalpainting background while resizing..... Pin
Neha19-Nov-02 23:58
Neha19-Nov-02 23:58 
GeneralRe: painting background while resizing..... Pin
Rickard Andersson2020-Nov-02 1:23
Rickard Andersson2020-Nov-02 1:23 
GeneralRe: painting background while resizing..... Pin
Gary R. Wheeler20-Nov-02 13:57
Gary R. Wheeler20-Nov-02 13:57 
GeneralRe: painting background while resizing..... Pin
Anonymous20-Nov-02 20:39
Anonymous20-Nov-02 20:39 
GeneralRe: painting background while resizing..... Pin
KarstenK20-Nov-02 1:24
mveKarstenK20-Nov-02 1:24 
GeneralRe: painting background while resizing..... Pin
georgiek5020-Nov-02 2:21
georgiek5020-Nov-02 2:21 
GeneralRe: painting background while resizing..... Pin
KarstenK20-Nov-02 2:41
mveKarstenK20-Nov-02 2:41 
GeneralRe: painting background while resizing..... Pin
georgiek5020-Nov-02 8:38
georgiek5020-Nov-02 8:38 
GeneralWH_JOURNALRECORD and WH_JOURNALPLAYBACK Pin
w200219-Nov-02 23:53
w200219-Nov-02 23:53 
GeneralCWebBrowser2 Control Question Pin
Anonymous19-Nov-02 23:49
Anonymous19-Nov-02 23:49 
GeneralRe: CWebBrowser2 Control Question Pin
Shaun Wilde20-Nov-02 1:22
Shaun Wilde20-Nov-02 1:22 
GeneralRe: CWebBrowser2 Control Question Pin
Anonymous22-Nov-02 2:44
Anonymous22-Nov-02 2:44 
GeneralRe: CWebBrowser2 Control Question Pin
Shaun Wilde22-Nov-02 5:25
Shaun Wilde22-Nov-02 5:25 
General::Postmessage(...) Pin
Raphael Kindt19-Nov-02 23:43
Raphael Kindt19-Nov-02 23:43 
GeneralRe: ::Postmessage(...) Pin
Hans Ruck20-Nov-02 1:03
Hans Ruck20-Nov-02 1:03 
GeneralIn what situation the winsock overlapped operation will return without complete the task Pin
Kerry Chou19-Nov-02 23:31
Kerry Chou19-Nov-02 23:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.